Skip to content

Instantly share code, notes, and snippets.

View Tangdixi's full-sized avatar
❄️
Freezing

Tangdixi Tangdixi

❄️
Freezing
View GitHub Profile
@Tangdixi
Tangdixi / Jenkins-Xcode-Shell
Last active December 2, 2016 03:39
Jenkins Xcode CI Shell
#!/bin/sh
##
## Create by DC Tang
##
## Setup variables
##
WORKSPACE="POS.xcworkspace"
TARGET_SDK=iphoneos10.1
@Tangdixi
Tangdixi / CAAnimation+CompleteClosure
Created June 20, 2016 12:16
Add complete callback to CAAnimationGroup
import UIKit
typealias CAAnimationGroupCompletion = (()->Void)
class CAAnimationGroupCompletionWrapper {
var closure:(CAAnimationGroupCompletion)?
init(closure:CAAnimationGroupCompletion?) {
self.closure = closure
}
}