Keybase proof
I hereby claim:
- I am t-pham on github.
- I am tpham (https://keybase.io/tpham) on keybase.
- I have a public key ASB2senYAAcq9Q0QhoCtDhc6fYJfbt1QTEsA8X7CZJi5fwo
To claim this, I am signing this object:
// | |
// DeviceOptimizer.swift | |
// | |
// Created by Thanh Pham on 8/4/16. | |
// | |
import UIKit | |
struct DeviceOptimizer { |
I hereby claim:
To claim this, I am signing this object:
class Node { | |
var id = 0 | |
weak var parent: Node? = nil | |
var left: Node? = nil { | |
didSet { | |
left?.parent = self | |
} | |
} | |
var right: Node? = nil { | |
didSet { |
// | |
// MacroFunctions.swift | |
// | |
// Created by Thanh Pham on 7/22/16. | |
// | |
func ifNotDebugDo(@noescape closure: Void -> Void) { | |
#if !DEBUG | |
closure() | |
#endif |
import Foundation | |
// Alamofire | |
enum AlamofireReponse<T, E> { | |
case Success(T) | |
case Failure(E) | |
} | |
func responseJSON(alamofireReponse: AlamofireReponse<AnyObject, NSError> -> Void) { | |
alamofireReponse(.Success([["type": "not_object"], ["type": "not_object"]])) |
// | |
// AlamofireSwiftyJSONSerializer.swift | |
// | |
// Created by Thanh Pham on 7/21/16. | |
// | |
import Alamofire | |
import SwiftyJSON | |
extension Request { |