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
{ | |
"rooms": [ | |
{ | |
"name": "Z", | |
"north": "D", | |
"east": "B", | |
"south": null, | |
"west": null | |
}, | |
{ |
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
{ | |
"url":"/some/url/", | |
"type":"POST", | |
"isLocal":false, | |
"global":true, | |
"processData":true, | |
"async":true, | |
"contentType":"application/x-www-form-urlencoded; charset=UTF-8", | |
"accepts":{ | |
"*":"*/*", |
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
#define FRLog(format,...) \ | |
NSLog(@"%@:%i:%s" format, \ | |
[[NSString stringWithUTF8String:__FILE__] lastPathComponent], \ | |
__LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__) |
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
// clang -o test test.m -framework Foundation | |
#import <Foundation/Foundation.h> | |
@interface Forwarder : NSObject { | |
@package; | |
id destination; | |
} | |
@end |
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
// gcc test.m -o test -framework Foundation | |
#import <Foundation/Foundation.h> | |
#define safeblock(block) ((typeof(block))(block ? ((id)block) : ((id)^{}))) | |
int main() { | |
void (^block)(NSString *) = ^(NSString *anArgument){ | |
NSLog(@"Hello %@", anArgument); | |
}; | |
safeblock(block)(@"world"); |
NewerOlder