분류 전체보기
-
HTML 프레젠테이션 프레임워크Dev/Html 2013. 4. 8. 14:34
Html, CSS3, Javascript 만으로 구현한 프리젠테이션 프레임웍 정리Flowtime.jshttps://github.com/marcolago/flowtime.jsreveal.jshttps://github.com/hakimel/reveal.jsmpress.jshttps://github.com/bartaz/impress.jsdeck.jshttps://github.com/imakewebthings/deck.jsPresenteer.jshttps://github.com/willemmulder/Presenteer.jsslideshow.htmlhttps://github.com/dmfrancisco/slideshow.htmlPower Polygonhttps://github.com/braziljs/power-..
-
맥(Mac) 에서 tail 사용시 색깔 입히기Mac 2013. 4. 3. 23:30
로그 파일을 읽기 위해 tail 을 많이 사용하는데 색깔 구분이 안되서 보기가 좀 불편하다. 그래서 스크립트 하나 만들었다. 아래 처럼 shell script 파일 하나 만들고 bin 폴더에 복사해서 사용하면 된다. 참고로 아래 스크립트는 이클립스(eclipse)에서 자바(Java)개발시 console log 확인용으로 만들었다. $ vi tailf ====== 아래 내용 입력 ====== #"\033[0;30m" : Black#"\033[0;31m" : Red#"\033[0;32m" : Green#"\033[0;33m" : Yellow#"\033[0;34m" : Blue#"\033[0;35m" : Purple#"\033[0;36m" : Cyan#"\033[0;37m" : White if [ -f "$1..
-
IE7 이하 버전에서 "'console'이(가) 정의되지 않았습니다." 에러 처리Dev/JavaScript 2013. 3. 25. 10:59
웹 개발을 하다보면 javascript debug를 위해서 "console.log" 를 이용해서 debug 를 하는 경우가 굉장히 많다. 이때 주의 할 점은 사용을 하고 다 지워서 배포를 해야 하는데 잊어버리고, 또는 어디에 사용을 했는지 못찾는 경우가 있다. 이런 경우 그냥 배포를 하게 되면 IE7 이하 버전에서는 "'console'이(가) 정의되지 않았습니다." 라고 에러가 발생하게 되는데 이때 아래 내용을 javascript 제일 상단에 선언해 주면 된다. var console = console || { log:function(){}, warn:function(){}, error:function(){} };
-
페이스북(facebook) api FQL 에서 채팅내용(chatting list) 가져오기Dev/Facebook 2013. 3. 22. 14:27
FQL Query 에서 아래와 같이 작성하면 채팅 내용을 가져올 수 있다. select attachment, author_id, body, created_time, message_id, source, thread_id, viewer_id from message where thread_id IN (select thread_id from thread where folder_id = 0) and (author_id = me() or author_id != me()) order by created_time desc 주의할 점은 read_mailbox 권한이 있어야 한다.
-
javascript prototype class 사용시 jquery 에서 "this" 사용하는 방법Dev/JavaScript 2013. 3. 20. 15:28
javascript 를 prototype 을 이용해서 class 를 생성해서 사용할 경우 jQuery 안에서 자신객체인 "this" 를 사용할 수 없는데 아래와 같이 해결 할 수 있다. game = function () { this.type = "item"; }game.prototype.clicks = function () { var self = this; $("#btn_click").click(function () { alert(self.type); } } "var self = this;" 이런 방법으로 사용하면 된다.