I hereby claim:
- I am maxsz on github.
- I am maxsz (https://keybase.io/maxsz) on keybase.
- I have a public key whose fingerprint is 57B1 EF7D EE00 DD2C FA8B 98AD 52C4 992F 0226 BFD5
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| set -e -u -o pipefail | |
| THEME_LIGHT="ayu_light" | |
| THEME_DARK="ayu_dark" | |
| THEME_FILEPATH="${HOME}/.config/helix/themes/adaptive.toml" | |
| if [[ $DARKMODE == 0 ]]; then |
| test |
| extension SequenceType { | |
| // Index an array with a property. | |
| @warn_unused_result | |
| func index<T: Hashable>(@noescape by indexFunc: (Generator.Element -> T)) -> [T: Generator.Element] { | |
| var dict: [T: Generator.Element] = [:] | |
| for element in self { | |
| let index = indexFunc(element) | |
| dict[index] = element |
| - (void)popoverWillClose:(NSNotification *)notification | |
| { | |
| // https://openradar.appspot.com/26064913 | |
| // Turns out that Apple has a bug in their responder chain. It stores a non-weak (assign) | |
| // "_previousResponder", which is a button inside the deallocated popover. During window | |
| // state restoration/archiving, it tries to access this object (the button) and crashes. | |
| // We work around this by resetting the "_previousResponder" when the popover closes. | |
| NSResponder *firstResponder = [[[self view] window] firstResponder]; | |
| [[[self view] window] makeFirstResponder:nil]; | |
| class DelayedBlockOperation: NSOperation { | |
| private var delay: NSTimeInterval = 0 | |
| private var block: (() -> Void)? = nil | |
| private var queue: dispatch_queue_t = dispatch_get_main_queue() | |
| override var asynchronous: Bool { return true } | |
| override var executing : Bool { | |
| get { return _executing } | |
| set { | |
| willChangeValueForKey("isExecuting") |
I hereby claim:
To claim this, I am signing this object:
| % ruby --version | |
| rubinius 2.0.0.n198 (1.9.3 417f847d 2013-07-17 JI) [x86_64-apple-darwin12.4.0] | |
| % rails --version | |
| Rails 4.0.0 | |
| Create a new Rails app and switch to it's folder | |
| % rails new TestApp | |
| % cd TestApp |