I hereby claim:
- I am bryanoltman on github.
- I am oltman (https://keybase.io/oltman) on keybase.
- I have a public key whose fingerprint is 9F5B A5CD 545D 4CF3 DABE B372 548B 4FF4 A988 C946
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| func webSocket(webSocket: SRWebSocket!, didReceiveMessage message: AnyObject!) { | |
| guard let rawString: String = message as? String, | |
| let data: NSData = rawString.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false) else { | |
| return | |
| } | |
| var json : [String : AnyObject] | |
| do { | |
| try json = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.AllowFragments) as! [String : AnyObject] | |
| } catch { |
I hereby claim:
To claim this, I am signing this object:
| @interface NSDate (Comparators) | |
| - (BOOL)isEarlierThan:(NSDate*)otherDate; | |
| - (BOOL)isLaterThan:(NSDate*)otherDate; | |
| @end | |
| @implementation NSDate (Comparators) |