Skip to content

Instantly share code, notes, and snippets.

View stevestreza's full-sized avatar

Steve Streza stevestreza

View GitHub Profile
//always feels like cheating when I do this
-(
#if TARGET_OS_IPHONE
UIImage
#else
NSImage
#endif
*)image{
return _image;
^C
Program received signal SIGINT, Interrupt.
0x90b4e158 in mach_msg_trap ()
(gdb) st
Ambiguous command "st": stack, start, status, step, stepi, stepping, stop.
(gdb) stack
Undefined command: "stack". Try "help".
(gdb)
Jeremy Grosser: I disagree
Steve Streza: ?
Jeremy Grosser: you just like flamebaiting
Steve Streza: ???
Jeremy Grosser: 10:14 <relay> SteveStreza: It's amazing how useless Twitter becomes once its message queues fall behind more than a minute or two.
- (void)sendEvent:(NSEvent *)anEvent{
//This works around an AppKit bug, where key up events while holding
//down the command key don't get sent to the key window.
if([anEvent type] == NSKeyUp && ([anEvent modifierFlags] & NSCommandKeyMask)){
[[self keyWindow] sendEvent:anEvent];
}else{
[super sendEvent:anEvent];
}
}
diff --git a/src/yajl_parser.c b/src/yajl_parser.c
index 398873c..96add32 100644
--- a/src/yajl_parser.c
+++ b/src/yajl_parser.c
@@ -226,11 +226,11 @@ yajl_do_parse(yajl_handle hand, unsigned int * offset,
_CC_CHK(hand->callbacks->yajl_number(
hand->ctx,(const char *) buf, bufLen));
} else if (hand->callbacks->yajl_integer) {
- long int i = 0;
+ unsigned long i = 0;
(function(){
var oldParseInt = window.parseInt;
window.parseInt = function(val, base){
if(!base) base = 10;
return oldParseInt(val, base);
}
})();
# block mochiads
127.0.0.1 www.mochiads.com
127.0.0.1 www.x.mochiads.com
127.0.0.1 x.mochiads.com
127.0.0.1 www.core.mochibot.com
127.0.0.1 www.mochibot.com
127.0.0.1 core.mochibot.com
//
// SSScrollView.h
//
/*
Get a delegate callback when the scroll view scrolls.
*/
#import <Cocoa/Cocoa.h>
-(void)awakeFromNib{
styleView1.style =
[TTSolidFillStyle styleWithColor:[NSColor colorWithCalibratedWhite:0.5 alpha:1.0]
next:
nil
];
styleView2.style =
[TTSolidFillStyle styleWithColor:[NSColor colorWithCalibratedRed:1.0 green:0.5 blue:0.25 alpha:1.0]
next:
6.3 In the event that Apple receives any notice or claim from any end-user that:
(i) the end-user wishes to cancel its license to any of the Licensed Applications
within ninety (90) days of the date of download of that Licensed Application by that
end-user; or (ii) a Licensed Application fails to conform to Your specifications
or Your product warranty or the requirements of any applicable law, Apple may refund
to the end-user the full amount of the price paid by the end-user for that Licensed
Application. In the event that Apple refunds any such price to an end-user, You shall
reimburse, or grant Apple a credit for, an amount equal to the price for that Licensed
Application. Apple will have the right to retain its commission on the sale of that
Licensed Application, notwithstanding the refund of the price to the end-user.