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 | |
# EXIF date converter | |
# Dependencies | |
# $ pip install piexif | |
import argparse | |
import datetime | |
import sys |
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.net.SocketAddress; | |
import java.util.Collections; | |
import java.util.Map; | |
import org.junit.Test; | |
import io.lettuce.core.RedisClient; | |
import io.lettuce.core.api.StatefulRedisConnection; | |
import io.lettuce.core.metrics.CommandLatencyCollector; | |
import io.lettuce.core.metrics.CommandLatencyId; |
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 perl | |
use 5.010; | |
use strict; | |
use warnings; | |
use Encode qw/encode decode/; | |
use Unicode::Normalize qw/compose/; | |
while(<>) { | |
my $line = compose(decode('utf8',$_)); | |
print encode('utf8',$line); |
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
@Test | |
public void disconnectedWriteTimeoutExceptionAndReconnectTest() throws Exception { | |
AtomicBoolean networkIsStable = new AtomicBoolean(true); | |
Delay reconnectDelay = Delay.exponential(1, 100, TimeUnit.MILLISECONDS, 2); | |
NettyCustomizer nettyCustomizer = new NettyCustomizer() { | |
@Override | |
public void afterBootstrapInitialized(Bootstrap bootstrap) {} |
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
{ | |
"name": "ThriftTest", | |
"namespaces": { | |
"*": "thrift.test", | |
"c_glib": "TTest", | |
"cocoa": "ThriftTest", | |
"cpp": "thrift.test", | |
"cpp.noexist": "ThriftTest", | |
"csharp": "Thrift.Test", | |
"delphi": "Thrift.Test", |
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.lang.reflect.Type; | |
import com.fasterxml.jackson.core.type.TypeReference; | |
public class JavaReturnTypeInfer{ | |
private static String speficicType() throws Exception{ | |
TypeReference<String> tr = new TypeReference<String>(){}; | |
Type type = tr.getType(); | |
System.out.println(type.getTypeName()); // => java.lang.String | |
return (String) Class.forName(type.getTypeName()).newInstance(); |
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 | |
# detecting file encoding and line-ending, and fix it | |
# coded by jong10 | |
# before, you need to install chardet: | |
# > pip install chardet | |
# Usage: ./fixfileformat.py *.h *.cpp *.py |
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/python | |
# -*- coding: utf-8 -*- | |
# food2sms.py | |
# 숭실대학교 학식 문자 메시지 프로그램 | |
# version: 2008.05.01.b | |
# coded by jong10 | |
# need: http://twill.idyll.org/ | |
# need: http://www.crummy.com/software/BeautifulSoup/ |
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
// for legacy permalink of articles (tumblr) | |
// https://gist.github.com/3488464 | |
var tistory_to_tumblr = {112:30221404745,153:30221405199,162:30221406213, | |
165:30221406682,169:30221407456,190:30221408123,198:30221408582,206:30221409411, | |
222:30221410069,226:30221410948,228:30221411862,232:30221412510,234:30221413236, | |
235:30221413938,239:30221414577,241:30221415162,246:30221416063,247:30221416688, | |
250:30221417632,254:30221418221,261:30221419015,262:30221419621,267:30221420423, | |
269:30221421190,270:30221421891,276:30221422892,277:30221424099,278:30221424871, | |
279:30221425577,281:30221426200,282:30221427117,283:30221427848,289:30221428614, |
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
2009/09/04: 켄트 벡 세미나 후기 - 반응적 설계 | |
Kent Beck 방한 세미나 | |
Responsive Design | |
세미나 기록 by 종텐(Jong10) | |
NewerOlder