Skip to content

Instantly share code, notes, and snippets.

View soharu's full-sized avatar

오자현 / Jahyun Oh soharu

View GitHub Profile
@soharu
soharu / gist:5096919
Last active December 14, 2015 13:58
va_list in Cocoa
- (void)setContentsWithFormat:(NSString *)formatString, ...
{
[contents autorelease];
va_list args;
va_start(args, formatString);
contents = [[NSString alloc] initWithFormat:formatString arguments:args];
va_end(args);
}
#!/user/bin/env python
import json
import sys
from types import *
def cpp_type(value):
if type(value) is IntType:
return 'int'
elif type(value) is FloatType:
@soharu
soharu / submit.py
Last active December 13, 2015 19:59 — forked from falsetru/submit.py
#!/usr/bin/env python
import urllib, urllib2
import cookielib
import os
from contextlib import closing
import re
import getpass
import webbrowser
import sys