ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
This file contains 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
// my little html string builder | |
buildHTML = function(tag, html, attrs) { | |
// you can skip html param | |
if (typeof(html) != 'string') { | |
attrs = html; | |
html = null; | |
} | |
var h = '<' + tag; | |
for (attr in attrs) { | |
if(attrs[attr] === false) continue; |
This file contains 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
//This sample is how to use websocket of Tomcat. | |
package wsapp; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.CharBuffer; | |
import java.util.ArrayList; | |
import org.apache.catalina.websocket.MessageInbound; | |
import org.apache.catalina.websocket.StreamInbound; | |
import org.apache.catalina.websocket.WebSocketServlet; |
This file contains 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
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.WebDataBinder; | |
import org.springframework.web.bind.annotation.InitBinder; | |
/** | |
* @author banterCZ | |
*/ | |
@Controller | |
public class MyController { |
- ํ๊ตญ์ด ๋ฒ์ญ(์ด๋ฒ): nacyot
- ๊ฐ์ด ์ฝ์ผ๋ฉด ์ข์ ๋ฌธ์๋ค
This file contains 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
lg = log --graph --format=format:'%C(ul cyan)%h%C(reset) |%C(auto)%d%C(reset) %C(white)%ai%C(reset) (%ar)%n'' %C(white)%s%C(reset) %C(bold black)- %an%C(reset)' --all |
- ์๋ฌธ: http://www.nurkiewicz.com/2016/06/functor-and-monad-examples-in-plain-java.html
- ์์ฑ์: Tomasz Nurkiewicz
์ด ๊ธ์ ์ฐ๋ฆฌ๊ฐ ์ด ์ฑ , 'Reactive Programming with RxJava' ์ ๋ถ๋ก์ด์๋ค. Reactive programming๊ณผ ๊ด๋ จ์ด ๊น์ ์ฃผ์ ๊ธด ํ์ง๋ง ๋ชจ๋๋๋ฅผ ์๊ฐํ๋ค๋ ๊ฒ ์ฑ ๊ณผ ์ฉ ์ด์ธ๋ฆฌ์ง๋ ์์๋ค. ๊ทธ๋์ ๋๋ ๋ฐ๋ก ๋ธ๋ก๊ทธ์ ์ฌ๋ฆฌ๊ธฐ๋ก ํ๋ค. ํ๋ก๊ทธ๋๋ฐ์ ๋ค๋ฃจ๋ ๋ธ๋ก๊ทธ์์ *"๋ฐ์ ๋ง๊ณ ๋ฐ์ ํ๋ฆด ์ง ๋ชจ๋ฅด๋ ๋๋ง์ ๋ชจ๋๋ ์ค๋ช "*์ด๋ ๊ฒ์ด ์๋ก์ด *"Hello World"*๋ผ๋ ์ ์ ๋๋ ์ ์๋ค. ํ์ง๋ง ์ด ๊ธ์ ํํฐ(functor)์ ๋ชจ๋๋(monad)๋ฅผ ์๋ฐ ์๋ฃ ๊ตฌ์กฐ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ผ๋ ๊ฐ๋์์ ๋ฐ๋ผ๋ณด๊ณ ์์ผ๋ฉฐ, ์ด๋ ๊ณต์ ํ ์ ๋์ ๊ฐ์น๋ ์์๊ฑฐ๋ผ ์๊ฐํ๋ค.