In no particular order other than my Twitter list of follows...
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
| // | |
| // Coordinator | |
| // | |
| // Created by Ian Keen. | |
| // Copyright © 2018 Ian Keen. All rights reserved. | |
| // | |
| import ObjectiveC | |
| import UIKit |
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 debounce<T>(delay: TimeInterval, function: @escaping (T) -> Void, complete: @escaping () -> Void = { }) -> (T) -> Void { | |
| let queue = DispatchQueue(label: "Debouncer") | |
| var current: DispatchWorkItem? | |
| return { input in | |
| current?.cancel() | |
| let new = DispatchWorkItem { | |
| function(input) | |
| complete() | |
| } |
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 | |
| // This code is based on implementing the following: | |
| // Implement an algorithm to determine if a string has all unique characters. What if you cannot use any additional data structures? | |
| extension Character { | |
| func toString() -> String { | |
| return String(self) | |
| } | |
| } |
$ brew install imagemagick
OlderNewer