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:
eyJhIjoiPGE+Pz8/In0= |
slather coverage \ | |
--cobertura-xml \ | |
--scheme "SchemeName" \ | |
--workspace path/to/workspace \ | |
XcodeProjectName.xcodeproj | |
xmlstarlet sel \ | |
--template \ | |
--match "//coverage[1]" \ | |
--elem "object" \ |
struct MyTextFieldEvents: OptionSetType { | |
let rawValue: UInt | |
static let BackSpaceDidPress = MyTextFieldEvents(rawValue: 1 << 24) | |
} | |
class MyTextField: UITextField { | |
func addTarget(target: AnyObject?, action: Selector, forControlEvents controlEvents: MyTextFieldEvents) { | |
super.addTarget(target, action: action, forControlEvents: UIControlEvents(rawValue: controlEvents.rawValue)) | |
} |
// | |
// 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 { |