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
void uncaughtExceptionHandler(NSException *exception) { | |
// touch file or write nsdeafult | |
} | |
- (void)applicationDidFinishLaunching:(UIApplication *)application { | |
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler); | |
} |
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
UIGraphicsBeginImageContext(CGSizeMake(320, 480)); | |
CGContextRef context = UIGraphicsGetCurrentContext(); | |
[controller.view setNeedsDisplay]; | |
[controller.view.layer renderInContext:context]; | |
UIImage *anImage = UIGraphicsGetImageFromCurrentImageContext(); | |
NSData *png = UIImagePNGRepresentation(anImage); | |
UIGraphicsEndImageContext(); |
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
2010-07-30 00:43:37.206 ThreadTest[2998:207] SQLite version 3.7.0 | |
2010-07-30 00:43:38.048 ThreadTest[2998:207] JSON decode (0.532568 / 0.532568) | |
2010-07-30 00:43:38.599 ThreadTest[2998:207] Craete Status object (0.551935 / 1.084503) | |
2010-07-30 00:43:38.959 ThreadTest[2998:207] Parse tweet (0.359566 / 1.444069) | |
2010-07-30 00:43:39.479 ThreadTest[2998:207] Calc cell height (0.520373 / 1.964442) | |
2010-07-30 00:43:39.808 ThreadTest[2998:207] Insert data (0.328931 / 2.293373) |
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
DROP TABLE IF EXISTS home_timeline_%d; | |
CREATE TABLE home_timeline_%d ( | |
'status_id' INTEGER PRIMARY KEY, | |
'favorited' INTEGER | |
); | |
DROP TABLE IF EXISTS mentions_%d; | |
CREATE TABLE mentions_%d ( | |
'status_id' INTEGER PRIMARY KEY, | |
'favorited' INTEGER |
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
CREATE TABLE statuses ( | |
'id' INTEGER PRIMARY KEY, | |
'user_id' INTEGER, | |
'text' TEXT, | |
'created_at' INTEGER, | |
'source' TEXT, | |
'latitude' REAL, | |
'longitude' REAL, | |
'in_reply_to_status_id' INTEGER, | |
'in_reply_to_screen_name' TEXT, |
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
CREATE TABLE statuses ( | |
'id' INTEGER PRIMARY KEY, | |
'tweet' TEXT, | |
'in_reply_to_status_id' INTEGER, | |
'user_id' INTEGER, | |
'user' TEXT | |
); | |
CREATE INDEX statuses_in_reply_to_status_id on statuses(in_reply_to_status_id); | |
CREATE INDEX statuses_user_id on statuses(user_id); |
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
diff --git a/app/src/lib/user.py b/app/src/lib/user.py | |
index 2cf4643..7b3a1c7 100644 | |
--- a/app/src/lib/user.py | |
+++ b/app/src/lib/user.py | |
@@ -134,6 +134,7 @@ class User(db.Model): | |
for param in params: | |
ret[param] = getattr(self, param) | |
+ ret['global_push_for_pro_users'] = True | |
return ret |
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
diff -r f4c422de6fce widget/src/cocoa/nsChildView.mm | |
--- a/widget/src/cocoa/nsChildView.mm Thu Dec 30 12:51:49 2010 -0500 | |
+++ b/widget/src/cocoa/nsChildView.mm Fri Dec 31 01:35:46 2010 -0800 | |
@@ -4860,10 +4866,17 @@ | |
NSString* chars = [aKeyEvent characters]; | |
if ([chars length] > 0) | |
outGeckoEvent->charCode = [chars characterAtIndex:0]; | |
- | |
+ | |
// convert control-modified charCode to raw charCode (with appropriate case) |
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
{ | |
config = { | |
interval = 10; | |
"is_free" = 0; | |
}; | |
keywords = ( | |
); | |
mute = { | |
users: (0, 1, 2); | |
hasgtags: ("#test", "#hoge"); |
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
[2011-01-20 11:17:20,281] - CRITICAL: Thread-37 keyerror: {'created_at': datetime.datetime(2011, 1, 20, 19, 16, 30), 'user_id': 10024402, 'msg_type': 2, 'latency': 48, 'sender_screen_name': u'naan', 'sender_id': 713323, 'text': 'Hey', 'message_id': 2237585857, 'friend': 1} | |
[2011-01-20 11:17:22,284] - CRITICAL: Thread-37 keyerror: {'created_at': datetime.datetime(2011, 1, 20, 19, 16, 30), 'user_id': 10024402, 'msg_type': 2, 'latency': 48, 'sender_screen_name': u'naan', 'sender_id': 713323, 'text': 'Hey', 'message_id': 2237585857, 'friend': 1} | |
[2011-01-20 11:17:26,286] - CRITICAL: Thread-37 keyerror: {'created_at': datetime.datetime(2011, 1, 20, 19, 16, 30), 'user_id': 10024402, 'msg_type': 2, 'latency': 48, 'sender_screen_name': u'naan', 'sender_id': 713323, 'text': 'Hey', 'message_id': 2237585857, 'friend': 1} | |
[2011-01-20 11:17:34,291] - CRITICAL: Thread-37 keyerror: {'created_at': datetime.datetime(2011, 1, 20, 19, 16, 30), 'user_id': 10024402, 'msg_type': 2, 'latency': 48, 'sender_screen_name': u'naan', 'se |