I hereby claim:
- I am patr1ck on github.
- I am patr1ck (https://keybase.io/patr1ck) on keybase.
- I have a public key whose fingerprint is 2BF0 3AAF EB33 4E47 C823 2F1F 98D8 5AFE 2729 A3D5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Author</key> | |
<string>Patrick B. Gibson</string> | |
<key>Builder Version</key> | |
<string>8536.30.1</string> | |
<key>CFBundleDisplayName</key> | |
<string>WWDC Accordion Smash</string> |
// In Swift, functions can be defined with identical parameter types, but different return types. | |
func isHello(string: String) -> Bool { | |
if string == "Hello" { | |
return true | |
} else { | |
return false | |
} | |
} |
extension CollectionType { | |
/// Returns the element at the specified index iff it is within bounds, otherwise nil. | |
subscript (safe index: Index) -> Generator.Element? { | |
return indices.contains(index) ? self[index] : nil | |
} | |
} | |
extension Int { | |
func times(thing: Void -> Void) -> Void { | |
for _ in 0..<self { |
import Foundation | |
precedencegroup GreaterBPrecedence { | |
associativity: left | |
higherThan: LogicalConjunctionPrecedence | |
} | |
precedencegroup EqualBPrecedence { | |
associativity: left | |
higherThan: GreaterBPrecedence |
I hereby claim:
To claim this, I am signing this object:
// | |
// KeyboardListener.swift | |
// | |
// Created by Patrick B. Gibson on 7/16/16. | |
// | |
import UIKit | |
protocol KeyboardListener: AnyObject { | |
var view: UIView! { get } |