This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://www.webupd8.org/2012/06/grive-update-brings-full-google-drive.html | |
| > sudo add-apt-repository ppa:nilarimogard/webupd8 | |
| > sudo apt-get update | |
| > sudo apt-get install grive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 사용할 자바스크립트 참조 --> | |
| <script type='text/javascript' src='underscore.js 참조'></script> | |
| <script type='text/javascript' src='jquery.js 참조'></script> | |
| <script type='text/javascript' src='ejs.js 참조'></script><!-- http://embeddedjs.com/ --> | |
| <!-- EJS 템플릿 예제. --> | |
| <!-- | |
| * type='text/template' 으로 지정. | |
| * 이후에 참조를 위해서 id 속성을 지정. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tmux split-window | |
| tmux split-window | |
| tmux split-window | |
| tmux select-layout tiled | |
| tmux select-pane -t 0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defprotocol Foo | |
| (blah | |
| [this x] | |
| [this x y])) | |
| (def r (reify Foo | |
| (blah [_ x] x) | |
| (blah [_ x y] y))) | |
| (blah r 1) ;; => 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn print-all [arr] | |
| (println "-----") | |
| (doseq [i arr] (println i))) | |
| ;;; 기본적으로 동작할때. | |
| ;;; http://docs.oracle.com/javase/6/docs/api/java/io/File.html#listFiles() | |
| (print-all (.listFiles (java.io.File. "."))) | |
| ;;;--> dir-file-filter은 그냥 FileFilter을 구현한 객체 인스턴스. | |
| (def dir-file-filter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defprotocol Fruit | |
| (subtotal [item])) | |
| (extend-type Orange | |
| Fruit | |
| (subtotal [item] (* 98 (:qty item)))) | |
| ;;; 'coupon' is the function returing a 'reify' of subtotal. This is | |
| ;;; when someone uses a coupon ticket, the price of some fruits is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -# -*- mode: haml; coding: utf-8; -*- | |
| !!! html | |
| %html | |
| %head | |
| %title= @page_title || '기업인' | |
| = stylesheet_link_tag "application" | |
| = javascript_include_tag "application" | |
| = csrf_meta_tags | |
| %meta{'http-equiv' => "Content-Type", 'content' => "text/html; charset=UTF-8"}/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 요게 애플리케이션 시작하면 일어날 코드. | |
| public static void main(String[] args) { | |
| // 일단 applicationContext.xml 로딩해서 ApplicationContext 객체 얻어냄. | |
| ApplicationContext appCtx = new ClasspathApplicationContext("classpath*:applicationContext.xml"); | |
| // myDao 객체 달라고 요청. | |
| MyDao myDao = (MyDao) appCtx.getBean("myDao"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Controller | |
| public class CalcController { | |
| @RequestMapping("/") | |
| public void welcomeHandler() { | |
| } | |
| @RequestMapping("/plus") | |
| public ModelMap plus(Integer a, Integer b) { | |
| ModelMap m = new ModelMap(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias gradleDebugJettyRun="GRADLE_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n' gradle jettyRun" |