View guard_pretty.swift
guard !argument.isEmpty,
nums.count == arguments.count
else {
print("Blah blah")
}
guard let someVar = someOptional,
let otherVar = otherOptional,
nums.count == arguments.count
else { return }
View keybase.md

Keybase proof

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:

View Duration.swift
import Foundation
public struct Duration {
private var _nanos: UInt64
public var nanoseconds: Double {
get {
return Double(_nanos)
}
}
View ports.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View podfile
platform :ios, '7.1'
pod 'cocos2d-iphone', path: '~/local-cocos2d-repository-with-podspec/'
View gist:9420056
#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
View drinks.md

San Salvador

  • 1.5oz dark rum
  • 1oz triple sec
  • 0.5oz lime juice
  • 1.5oz orange juice

Daiquiri - ***

  • 2oz Rum
  • 1/2 or 1oz Lime juice (usually about one lime's worth of juice)
  • 1 tsp. simple syrup, add more to taste.
View install_cert.zsh
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
}
View gist:828509
-(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];