I hereby claim:
- I am dylan on github.
- I am dylanrw (https://keybase.io/dylanrw) on keybase.
- I have a public key ASDx2uRFqxQqvkaSOULAalpfIUgagV8EaBuAsESpzeLp6Qo
To claim this, I am signing this object:
guard !argument.isEmpty, | |
nums.count == arguments.count | |
else { | |
print("Blah blah") | |
} | |
guard let someVar = someOptional, | |
let otherVar = otherOptional, | |
nums.count == arguments.count | |
else { return } |
I hereby claim:
To claim this, I am signing this object:
import Foundation | |
public struct Duration { | |
private var _nanos: UInt64 | |
public var nanoseconds: Double { | |
get { | |
return Double(_nanos) | |
} | |
} |
platform :ios, '7.1' | |
pod 'cocos2d-iphone', path: '~/local-cocos2d-repository-with-podspec/' |
#For use with automator and sox | |
process () { | |
/usr/local/bin/sox "$1" "$1:r.wav" | |
} | |
for x; do | |
if [ -d $x ]; then | |
FILES=($x/*.(aif|mp3|ogg|m4a|flac)) | |
for file in $FILES; do | |
process $file |
DIRECTORY="/usr/local/etc/openssl/certs" | |
download_cert() { | |
cd $DIRECTORY && wget http://curl.haxx.se/ca/cacert.pem | |
} | |
add_to_zsh() { | |
echo "export SSL_CERT_FILE=$DIRECTORY/cacert.pem" >> ~/.zshrc | |
} |
-(id)initWithFrame:(CGRect)frame { | |
if ((self = [super initWithFrame:frame])) { | |
CGSize winSize; | |
NSAutoreleasePool *pool; | |
UIImage *dImg, *cImg; | |
pool = [NSAutoreleasePool new]; | |
winSize = [[CCDirector sharedDirector] winSize]; | |
_cView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)] autorelease]; | |
_bg = [[[UIImageView alloc] initWithFrame:CGRectZero] autorelease]; |