-
์๋ผ๋ ์ธ๋ฌธํ์คํฐ๋
-
2016๋ 6์ 4์ผ ํ ์์ผ ์คํ 2์
-
๋งํฌ๊ตฌ๋ฆฝ ์๊ฐ๋์๊ด 2์ธต ๋ค๋ชฉ์ ์ค
-
ํต์ญ ์ํ์
-
๋ค์ผ๋ฉด์ ์ ์์ผ๋ฏ๋ก ์ฎ๊ธฐ๋ฉด์ ๋ฌ๋ผ์ก์ ์ ์์ต๋๋ค.
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
(let [uri (URI. "ceds://host.net/path1/p2?quiet#myidw")] | |
[(.getHost uri) (.getPath uri) (.getScheme uri) (.getQuery uri) (.getFragment uri)]) | |
==> ["host.net" "/path1/p2" "ceds" "quiet" "myidw"] |
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
private String r06Display(String code) { | |
if (code == null) { | |
return ""; | |
} | |
if (code.equals("0")) { | |
return "์์"; | |
} | |
if (code.equals("1")) { | |
return "1mm ๋ฏธ๋ง"; | |
} |
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
{ | |
"dday": { | |
"id": 5728072679555072, | |
"accountId": "[email protected]", | |
"name": "์์ฃผ๋ฏธ๋", | |
"startTime": "2016-01-21 11:53 +0900", | |
"alarm": true, | |
"createdTime": "2015-09-23 11:54 +0900", | |
"enabled": true, | |
"location": "๋์ ๊ด์ญ์ ๋๋๊ตฌ", |
no contents
https://www.youtube.com/watch?v=lE6Hxz4yomA
https://www.youtube.com/watch?v=aieoAWXNjl0
http://naa4e.codeplex.com http://facebook.com/naa4e
- Crunch knowledge about the domain
- Recognize subdomains
- Design a rich domain model
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
;; handler | |
(def app | |
(-> (routes | |
api-routes ;; for rest api | |
(wrap-routes home-routes middleware/wrap-csrf) ;; for regular web site | |
base-routes) | |
middleware/wrap-base)) | |
;; middleware์ ์๋ wrap-base | |
(defn wrap-formats [handler] |
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://opentutorials.org/course/128/8657 | |
$ sudo apt-get update | |
$ curl -sSL https://get.docker.com/ubuntu/ | sudo sh # Docker๋ฅผ ์ค์นํ์. | |
$ sudo docker images #์ด๋ฏธ์ง ๋ชฉ๋ก์ ์ดํด๋ณด์. ์๋ฌด ๊ฒ๋ ์๋ค. | |
$ sudo docker pull ubuntu:14.04 # ์ฐ๋ถํฌ๋ฅผ ๋ก์ผ์ค์. | |
$ sudo docker run -i -t ubuntu:14.04 /bin/bash # ๋ก๊ฒจ์จ ์ฐ๋ถํฌ๋ก bash๋ฅผ ์คํํ์. | |
$ # ๋ค๋ฅธ ํฐ๋ฏธ๋๋ก ์ ์ํด ์๋์ ๊ฐ์ด docker ps๋ฅผ ํ๋ฉด ๋ฐฉ๊ธ ์คํํ bash๊ฐ ๋ณด์ธ๋ค. ์ด๊ฒ ์ง๊ธ ์ปจํ ์ด๋์์ ์คํ๋๋ ๊ฒ์ด๋ค. | |
$ sudo docker ps -a # ์คํ์ค์ธ ์ปจํ ์ด๋ ๋ชฉ๋ก์ ๋ณด์. -a๋ ์ข ๋ฃ๋ ์ปจํ ์ด๋๋ ๋ณด๋ ์ต์ . |
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
# refer http://www.jayway.com/2014/01/15/how-to-switch-jdk-version-on-mac-os-x-maverick/ | |
#creating a special home for Java 8 | |
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8) | |
#creating a special home for Java 7 | |
export JAVA_7_HOME=$(/usr/libexec/java_home -v1.7) | |
#creating a special home for Java 6 | |
export JAVA_6_HOME=$(/usr/libexec/java_home -v1.6) |
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
private byte[] downloadFile(String downloadUrl) throws MalformedURLException, | |
IOException, ProtocolException { | |
URL url = new URL(downloadUrl); | |
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); | |
connection.setRequestMethod("GET"); | |
ReadableByteChannel src = Channels.newChannel(connection.getInputStream()); | |
ByteArrayOutputStream baos = new ByteArrayOutputStream(); | |
WritableByteChannel dest = Channels.newChannel(baos); | |
ChannelTools.fastChannelCopy(src, dest); | |