I hereby claim:
- I am shakemno on github.
- I am shakemno (https://keybase.io/shakemno) on keybase.
- I have a public key ASDvn_QA3367neXL2hIJbJwWgw2JabJGyCIMCfXyt_l07wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
echo "starting background workflow..." | |
trap 'trap - SIGINT SIGTERM EXIT; $(kill $BGPID; exit 255)' SIGINT SIGTERM EXIT | |
eval 'gulp workflow &' | |
BGPID=$! | |
wait $BGPID | |
echo "\workflow stopped..." | |
exit |
//: | |
//: UIView Animation Syntax Sugar | |
//: | |
//: Created by Andyy Hope on 18/08/2016. | |
//: Twitter: @andyyhope | |
//: Medium: Andyy Hope, https://medium.com/@AndyyHope | |
import UIKit | |
extension UIView { |
import Dispatch | |
private var throttleWorkItems = [AnyHashable: DispatchWorkItem]() | |
private var lastDebounceCallTimes = [AnyHashable: DispatchTime]() | |
private let nilContext: AnyHashable = arc4random() | |
public extension DispatchQueue { | |
/** | |
- parameters: | |
- deadline: The timespan to delay a closure execution |
func attributeValue<T>(_ key: NSAttributedStringKey) -> T? { | |
let attributes = self.attributes(at: 0, effectiveRange: nil) | |
guard attributes.keys.contains(key), let val = attributes[key] else { | |
return nil | |
} | |
return val as? T | |
} |
import Foundation | |
extension Character { | |
func utf8() -> UInt8 { | |
let utf8 = String(self).utf8 | |
return utf8[utf8.startIndex] | |
} | |
} | |
func encrypt(c:Character, key:Character) -> String { |
plutil NAME.plist |
NotificationCenter | |
.default.reactive.notifications(forName: nil, object: nil) | |
.take(duringLifetimeOf: self) | |
.observeValues { (note) in | |
print("👻 \(note.description)") | |
} |
@interface SKStoreReviewDummyClass : NSObject @end | |
@implementation SKStoreReviewDummyClass | |
+ (void)load | |
{ | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
Class class = [self class]; |
NotificationCenter | |
.default.reactive.notifications(forName: nil, object: nil) | |
.take(duringLifetimeOf: self) | |
.observe(on: UIScheduler()) | |
.filter { note in | |
return note.name == Notification.Name.init("UITextEffectsWindowDidRotateNotification") | |
} | |
.observeValues { (note) in |