jquery와 angulars 같이 사용하기. requireJS로 시작했다가 무거운거 같아서 그냥 같이 쓰는걸로 해봤다. 문법적인 문제는 발견되지 않았다. 너무 간단한 테스트라서 그럴지도. AS-IS : index.html에 require.js와 main.js, angular.js, controllers.js 등을 녹여넣었다. * index.html jQuery+RequireJS Sample Page Look at source or inspect the DOM to see how it works. aaa Total number of phones: {{phones.length}} Angulars Templates - http://docs.angularjs.org/tutorial/step_02 Nothing..
RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments, like Rhino and Node. Using a modular script loader like RequireJS will improve the speed and quality of your code. http://requirejs.org/ 프로젝트에 require.js와 main.js 파일이 필요하다. 아래에서 main.js를 호출하는 구문이다. main.js( data-main="main" )에 로드할 JSLibrary와 해당 JSLabrary의 구문을..
기본 예제 - "예제중심의 파이썬" 1장 source # -*- coding: utf-8 -*- teamstandings = [('SK', 38,25,0), ('SS',39,27,2), ('KIA',38,29,0), ('LG',36,30,0), ('HH',29,39,1) ] for ts in teamstandings: team, win, lost, draw = ts games = win + lost + draw winrate = float(win) / (win + lost) format = '%s 팀은 총 %d 경기 중 %d 승으로 승률은 %.3f 입니다. ' print(format % (team, games, win, winrate)) #print( team, games, win, winrate ) #..
http://www.centos.org/ http://mirror.teklinks.com/centos/6.3/isos/x86_64/ 가상머신 : https://www.virtualbox.org/ https://www.virtualbox.org/wiki/Downloads
크롬 브라우저 파이썬 쉘 - https://chrome.google.com/webstore 크롬브라우저에서 파이썬 쉘 사용하기. APP과 확장 프로그램이 있는데, 둘다 차이점은 별로 없다.
웹 파이썬 shell - http://shell.appspot.com/ 설치 필요없이 인터넷에 연결되어 있으면 당장 파이썬을 사용해 볼 수 있는 방법.