Skip to content

Instantly share code, notes, and snippets.

@implementation MySharedThing
+ (id)sharedInstance
{
DEFINE_SHARED_INSTANCE_USING_BLOCK(^{
return [[self alloc] init];
});
}
@end
# git の差分表示に使うには .git/info/attributes にこの内容と、
*.mwb diff=MySQLWorkbench
# git config でこれが必要。
# git config diff.MySQLWorkbench.textconv /path/to/mwb.sh