I hereby claim:
- I am ksmandersen on github.
- I am ksmandersen (https://keybase.io/ksmandersen) on keybase.
- I have a public key whose fingerprint is AAA6 F6F2 F1B0 5FD0 A55B C524 2AF1 13BD 1A2B C11D
To claim this, I am signing this object:
| import UIKit | |
| import Forbind | |
| import ForbindExtensions | |
| import Haneke | |
| typealias ImageProcess = (UIImage) -> UIImage | |
| public class ImageCache { | |
| public static let shared = ImageCache() |
| final class ApplicationContext { | |
| // This is where you initialize most of the application stack | |
| // that needs to be passed down to the coordinator chain for | |
| // fetching data, and other important stuff. | |
| // Example: | |
| // let networkClient = NetworkClient() | |
| } |
| import UIKit | |
| open class PaddedTextField: UITextField { | |
| public var textInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) { | |
| didSet { setNeedsDisplay() } | |
| } | |
| public override init(frame: CGRect) { | |
| super.init(frame: frame) | |
| } |
| { | |
| "presets": ["es2015"] | |
| } |
| for f in ./*.flac; do avconv -n -i "$f" -c:a alac "${f%.*}.m4a" && rm "$f"; done |
I hereby claim:
To claim this, I am signing this object:
| # initialization file (not found) |
| let firstView = UIView() | |
| let otherView = UIView() | |
| // align.swift: | |
| firstView.alignTop(20, to: otherView) | |
| // vanilla: | |
| firstView.topAnchor.constraint(equalTo: otherView.topAnchor, constant: 20) | |
| public extension UIView { | |
| func alignCenterX(_ constant: CGFloat = 0, multiplier: CGFloat = 1, to view: UIView, | |
| attribute: NSLayoutAttribute = .centerX, | |
| relation: NSLayoutRelation = .equal, | |
| priority: UILayoutPriority = UILayoutPriorityRequired) -> NSLayoutConstraint { | |
| return alignAttribute(attribute: .centerX, relation: relation, | |
| to: view, otherAttribute: attribute, | |
| multiplier: multiplier, | |
| constant: constant, priority: priority) | |
| } |
| import UIKit | |
| import GenericViewKit | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| var window: UIWindow? | |
| private let applicationController = ApplicationController() | |
| func application(application: UIApplication, | |
| didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
| applicationController.configureReporting() |