- Chrome
- Xcode
- SourceTree
- Atom
- Iterm2 & Prezi
- need to configure
.zpreztorc
to enable git integration
- need to configure
- BetterTouchTool
- Deckset
- Slack
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
typealias Completion<Value, Error: Swift.Error> = (Result<Value, Error>) -> Void | |
typealias TaskHandler<Value, Error: Swift.Error> = (@escaping Completion<Value, Error>) -> Void | |
struct Task<Value, Error: Swift.Error> { | |
private let handler: TaskHandler<Value, Error> | |
init(_ handler: @escaping TaskHandler<Value, Error>) { | |
self.handler = handler | |
} |
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
import UIKit | |
import PlaygroundSupport | |
// 1. define style as function | |
typealias ViewStyle = (UIView) -> UIView | |
let cornerRadius10: ViewStyle = { view -> UIView in | |
view.layer.cornerRadius = 10.0 | |
return view | |
} |
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
import UIKit | |
import PlaygroundSupport | |
// 1. define style as function | |
// 2. make syntax readable | |
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
import UIKit | |
struct Style<View: UIView> { | |
let apply: (View) -> View | |
// from swift 5.2 | |
func callAsFunction(_ view: View) -> View { | |
apply(view) | |
} | |
} |
Yoshikuni Kato
- Two people do programming together
- Originated from Extreme Programming, which is one origin of Agile method
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
let array: Array<Int> = [1, 2, 3] | |
func double(input: Int) -> Int { | |
return input * 2 | |
} | |
let mappedArray = array.map { value in | |
return double(input: value) | |
} |
OlderNewer