Skip to content

Instantly share code, notes, and snippets.

View aki-null's full-sized avatar

Akihiro Noguchi aki-null

View GitHub Profile
@aki-null
aki-null / gist:2490310
Created April 25, 2012 14:51 — forked from hajipy/gist:2490294
[NSDictionary objectForKeyWithoutNull]
@implementation NSDictionary (objectForKeyWithoutNull)
- (id)objectForKeyWithoutNull:(id)aKey
{
id value = [self objectForKey:aKey];
if (value == [NSNull null]) {
return nil;
}
else {
return value;
}
@aki-null
aki-null / hack.sh
Last active December 27, 2017 05:48 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2261536/hack.sh | sh
#