gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
I hereby claim:
- I am y8k on github.
- I am y8k (https://keybase.io/y8k) on keybase.
- I have a public key ASBXD3Qi21pe1oIVjQ76feIIDyJSE4wp9DJp1ccEumwORgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let phoneNumber = "01026979999" | |
// REGEX FOR KOREAN CELL PHONE NUMBER FORMAT | |
let expression = "(\\d{3})(\\d{\(phoneNumber.count - 7)})(\\d{4})" | |
let result = phoneNumber.replacingOccurrences(of: expression, with: "$1-$2-$3", options: .regularExpression, range: nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef NS_OPTIONS(NSUInteger, UIViewAnimationOptions) { | |
UIViewAnimationOptionLayoutSubviews = 1 << 0, | |
UIViewAnimationOptionAllowUserInteraction = 1 << 1, // turn on user interaction while animating | |
UIViewAnimationOptionBeginFromCurrentState = 1 << 2, // start all views from current value, not initial value | |
UIViewAnimationOptionRepeat = 1 << 3, // repeat animation indefinitely | |
UIViewAnimationOptionAutoreverse = 1 << 4, // if repeat, run animation back and forth | |
UIViewAnimationOptionOverrideInheritedDuration = 1 << 5, // ignore nested duration | |
UIViewAnimationOptionOverrideInheritedCurve = 1 << 6, // ignore nested curve | |
UIViewAnimationOptionAllowAnimatedContent = 1 << 7, // animate contents (applies to transitions only) | |
UIViewAnimationOptionShowHideTransitionViews = 1 << 8, // flip to/from hidden state instead of adding/removing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -> Void) -> Bool { | |
guard let rootViewCntrlr = self.window?.rootViewController else { | |
return false; | |
} | |
guard let viewCntrlr = rootViewCntrlr as? ViewController else { | |
return false; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"applinks": {"apps": [], "details": [{ "appID": "[Team ID].com.y8k.UniversalLink", "paths":["*", "/"]}]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func previewActionItems() -> [UIPreviewActionItem] { | |
let safariAction = UIPreviewAction(title: "Open with Safari", style: UIPreviewActionStyle.Default) { (action, viewCntrlr) -> Void in | |
UIApplication.sharedApplication().openURL(NSURL(string: "http://y8k.me")!) | |
} | |
let closeAction = UIPreviewAction(title: "Copy URL", style: .Default) { (action, viewCntrlr) -> Void in | |
UIPasteboard.generalPasteboard().string = "http://y8k.me" | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func previewingContext(previewingContext: UIViewControllerPreviewing, commitViewController viewControllerToCommit: UIViewController) { | |
showViewController(viewControllerToCommit, sender: self) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func previewingContext(previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? { | |
guard let indexPath = self.tableView.indexPathForRowAtPoint(location), cell = self.tableView.cellForRowAtIndexPath(indexPath) else { return nil } | |
let selectedData = self.data[indexPath.row] | |
var detailViewCntrlr: UIViewController? | |
switch selectedData.type { | |
case .List: | |
detailViewCntrlr = self.storyboard?.instantiateViewControllerWithIdentifier("DETAIL_LIST_SCREEN") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PresentedViewController: UITableViewController, UIViewControllerPreviewingDelegate { | |
... | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
registerForPreviewingWithDelegate(self, sourceView: view) | |
} |
NewerOlder