This file contains hidden or 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 sayHi() -> String { | |
| return "Hello Dubi" | |
| } |
This file contains hidden or 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
| //: Playground - for Noa 💝 | |
| // http://adventofcode.com/2017/day/1 | |
| // author: Daniel Asher | |
| func string2Array(number: String) -> [Int] { | |
| var result: [Int] = [] | |
| for numeral in number { | |
| result.append(Int(String(numeral))!) | |
| } | |
| return result |
This file contains hidden or 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
| guard let tweakWindow = UIApplication.sharedApplication().keyWindow as? TweakWindow else { return } | |
| let tweaksViewController = tweakWindow.tweaksViewController | |
| tweaksViewController.rx_pressedDone | |
| .subscribeNext { isPressed in | |
| self.dismissViewControllerAnimated(true) { return } | |
| }.addDisposableTo(self.disposeBag) | |
| self.presentViewController(tweaksViewController, animated: true, completion: nil) |