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
" :vim set fileencoding=utf8 | |
" 기본설정 | |
" Windows Installation | |
" Windows에서는 closetag 를 심볼릭링크해줘야한다. 이 파일에서 closetag로 검색해볼것. | |
" Windows 에서는 $HOME\vimfiles 아래에 vimrc 로 설정파일을 두고 그 외 플러그인 디렉토리도 둔다. 즉 ~/.vim = $HOME\vimfiles | |
" cd $HOME\vimfiles | |
" curl -fLo autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
" mklink vimrc ..\tmp\vim\config\.vimrc | |
" HOME directory로 이동해서 | |
" mklink vimrc_pc ..\tmp\vim\config\.vimrc_pc_win |
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
if (args.length < 2) { | |
println "Usage groovy smi_timing filename milliseconds-to-adjust [encoding:default cp949]" | |
System.exit(-1) | |
} | |
def smi = new File(args[0]) | |
def millis = Long.parseLong(args[1]) | |
def encoding = args.length == 3 ? args[2] : "cp949" | |
println "$smi, $millis, $encoding" |
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
/** | |
* 쿼리의 IN 처럼 기준 값을 리스트를 받아서 처리하긴 하지만, 너무 큰 리스트는 | |
* 성능에 부담을 주기 때문에 나눠서 실행해야 할 경우, 자동으로 chunkSize에 따라 | |
* 나눠서 호출해주는 유틸리티. | |
*/ | |
public abstract class ChunkExecutionUtils { | |
public static final int DEFAULT_CHUNK_SIZE = 1000; | |
/** |
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
import java.util.Arrays; | |
/** | |
* int 형과 byte[] 간의 변환. | |
* ByteBuffer 를 사용하는 방법 대신, bit operator를 사용하는 기법. | |
* | |
* Java는 기본적으로 BigEndian이다. | |
* | |
* 참조 | |
* - http://stackoverflow.com/questions/2383265/convert-4-bytes-to-int |
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
/* | |
MySQL 5.6의 DATETIME 타입에 대한 밀리세컨드 부분 절삭 버그 재현 | |
MySQL 5.6.4 ms 지원 : http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html | |
MySQL 5.6 DATETIME 타입에서 ms 반올림(round) 버그 : http://bugs.mysql.com/bug.php?id=68760 | |
MySQL Connector/J 5.1.22 까지는 Date 객체의 ms 부분을 미리 절삭해 전송하는 버그 있음 | |
MySQL Connector/J 5.1.23 부터는 Date 객체의 ms 부분도 함께 전송 -> MySQL 5.6 서버의 ms 반올림 버그 유발 -> 초,분,날짜가 바뀌는 현상 유발 | |
** 아래코드를 반올림 버그가 있는 MySQL 5.6서버에서 JDBC 드라이버 바꿔가며 실행한 결과 |
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
#!/usr/bin/env python | |
import gtk | |
import sys | |
''' | |
X Window left/right edge margin reservation tool | |
Other windows cannot overlap the margin area. | |
Usage: screenmargin.py left|right pixel | |
# reserve left side 100 pixel | |
screenmargin.py left 100 |
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
package kr.pe.kwonnam.guavatest.cache; | |
import com.google.common.cache.CacheBuilder; | |
import com.google.common.cache.CacheLoader; | |
import com.google.common.cache.LoadingCache; | |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.TimeUnit; | |
/** |
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
<?php | |
$server = "localhost"; | |
$port = 11211; | |
/** | |
* Taken directly from memcache PECL source | |
* | |
* http://pecl.php.net/package/memcache | |
* | |
*/ |
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
/** Chapter 01 **/ | |
/* | |
문제에 오역이 좀 있다. 아래에서 문제 자체를 검색해서 확인해 볼 것. | |
Java 7 이상에서 실행할 것. | |
https://www.google.co.kr/search?client=ubuntu&channel=fs&q=scala+for+the+impatient+exercise&ie=utf-8&oe=utf-8&gws_rd=cr&redir_esc=&ei=oqvrUb-1B6LwiQfjk4GQBg | |
Scala Doc : http://www.scala-lang.org/api/current/index.html | |
*/ |