Skip to content

Instantly share code, notes, and snippets.

View bsstokes's full-sized avatar

Brian Stokes bsstokes

View GitHub Profile
@lukeredpath
lukeredpath / ExampleClass.m
Created June 30, 2011 22:18
Macro for creating your "shared instance" using GCD
@implementation MySharedThing
+ (id)sharedInstance
{
DEFINE_SHARED_INSTANCE_USING_BLOCK(^{
return [[self alloc] init];
});
}
@end
$ rackup -p 8880 static.ru