Skip to content

Instantly share code, notes, and snippets.

Minha Seong fra3il

Block or report user

Report or block fra3il

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fra3il
fra3il / 1290660300_2.m
Created Mar 10, 2015
[Blog] NSStringFromClass, NSClassFromString #2
View 1290660300_2.m
Class cls = NSClassFromString(@"UILocalNotification");
@fra3il
fra3il / 27_0.m
Last active Aug 29, 2015
[WP] DLog
View 27_0.m
#ifdef DEBUG
#define DLog(fmt, ...) NSLog((@"%s[Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#define DLog(...)
#endif
@fra3il
fra3il / 1288331340.py
Created Mar 9, 2015
[Blog] INSERT INTO ? VALUE ?
View 1288331340.py
#!/usr/bin/env python
#coding=utf8
import MySQLdb
conn = MySQLdb.connect(host='localhost', user='root', passwd='', db='test')
cu = conn.cursor()
text = "문자열"
print(text)
@fra3il
fra3il / 1290660300_1.m
Last active Aug 29, 2015
[Blog] NSStringFromClass, NSClassFromString #1
View 1290660300_1.m
NSLog(@"%@", NSStringFromClass([viewController class]));
@fra3il
fra3il / 1293067440.m
Created Mar 10, 2015
[Blog] 사용자 폰트 추가
View 1293067440.m
[_lbl setFont:[UIFont fontWithName:@"JPhonetic" size:20]];
@fra3il
fra3il / 1288240920_3.c
Last active Aug 29, 2015
[Blog] Django + MySQL + Mod Python #3
View 1288240920_3.c
while ((bytes_read < len || len == 0) && !(b == APR_BRIGADE_SENTINEL(bb) || APR_BUCKET_IS_EOS(b) || APR_BUCKET_IS_FLUSH(b))) {
...
}
@fra3il
fra3il / 1288240380
Last active Aug 29, 2015
[Blog] apachectl
View 1288240380
sudo apachectl restart
apachectl -t
@fra3il
fra3il / 1288320120_3
Created Mar 9, 2015
[Blog] latin1? utf8? - 1 #3
View 1288320120_3
+—————————————————————————–+———————————————————————————————————————————————————————
| Variable_name | Value
+—————————————————————————–+———————————————————————————————————————————————————————
| character_set_client | utf8
| character_set_connection | utf8
| character_set_database | utf8
| character_set_filesystem | binary
| character_set_results | utf8
| character_set_server | utf8
| character_set_system | utf8
@fra3il
fra3il / 1288336860.py
Created Mar 9, 2015
[Blog] latin1? utf8? - 2
View 1288336860.py
import MySQLdb
conn = MySQLdb.connect(host='localhost', user='root', passwd='', db='test')
cu = conn.cursor()
cu.execute("set names utf8")
@fra3il
fra3il / 1288239120.py
Last active Aug 29, 2015
[Blog] Can't find the file 'settings.py' in the directory containing
View 1288239120.py
except ImportError, e:
import sys
sys.stderr.write("'settings.py': %r n" % str(e))
sys.exit(1)
You can’t perform that action at this time.