Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sparga on github.
  • I am beameach (https://keybase.io/beameach) on keybase.
  • I have a public key ASALsBGRM6U8e2JKc47wAx6txqoK2gpXbf86K6ZPLxpJ3Qo

To claim this, I am signing this object:

{ "body": { "key": { "eldest_kid": "012055bb0d7e859c9cb4718bccf835200e63af67549350756383673986859482a7fa0a", "host": "keybase.io", "kid": "012055bb0d7e859c9cb4718bccf835200e63af67549350756383673986859482a7fa0a", "uid": "4ebff53813354cb6be3b886508b6ea19", "username": "beameach" }, "merkle_root": {

@sparga
sparga / Number Formatter
Created April 22, 2014 10:24
Formatters Snippets
+ (NSNumberFormatter *)<#formatterName#>
{
NSMutableDictionary *threadDict = [[NSThread currentThread] threadDictionary];
NSNumberFormatter *aFormatter = [threadDict objectForKey:NSStringFromSelector(_cmd)];
if(nil == aFormatter) {
aFormatter = [[NSNumberFormatter alloc] init];
NSLocale *parisLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"fr"];
[aFormatter setLocale:parisLocale];
<#formatterConfiguration#>