iOS Refs:
- Unit Testing
- Card Payments
- Separation App into several Dynamic Frameworks
- https://www.youtube.com/watch?v=4KuHq4PT9Bo
| #swagger ruby fix | |
| grep -rl "ActiveRecord::Migration$" db | xargs sed -i "" "s/ActiveRecord::Migration/ActiveRecord::Migration[5.1]/g" |
iOS Refs:
| https://www.raizlabs.com/dev/2014/02/animating-items-in-a-uicollectionview/ |
| {"lastUpload":"2020-04-14T13:58:45.149Z","extensionVersion":"v3.4.3"} |
| // Place your key bindings in this file to overwrite the defaults | |
| [ | |
| { | |
| "key": "cmd+t", | |
| "command": "openInTerminal.openIntegrated" | |
| }, | |
| { | |
| "key": "shift+cmd+t", | |
| "command": "openInTerminal.openRootIntegrated" | |
| }, |
| public extension FloatingPoint { | |
| /// Re-maps a number from one range to another. | |
| /// | |
| /// - Parameters: | |
| /// - source: The range to interpret the number as being a part of. | |
| /// - destination: The range to map the number to. | |
| /// - clamped: Whether the result should be clamped to the `to` range. Defaults to `false`. | |
| /// - reversed: whether the output mapping should be revserd, such that | |
| /// as the input increases, the output decreases. Defaults to `false`. |
| #!/bin/bash | |
| # bootstrap: brew install lame flac | |
| for f in *.flac; do | |
| [[ "$f" != *.flac ]] && continue | |
| album="$(metaflac --show-tag=album "$f" | sed 's/[^=]*=//')" | |
| artist="$(metaflac --show-tag=artist "$f" | sed 's/[^=]*=//')" | |
| date="$(metaflac --show-tag=date "$f" | sed 's/[^=]*=//')" |
| extension UIVisualEffectView { | |
| private var filterLayer: CALayer? { | |
| return layer.sublayers?.first | |
| } | |
| private var blurFilter: NSObject? { | |
| return filterLayer? | |
| .filters?.flatMap({ $0 as? NSObject }) | |
| .first(where: { $0.value(forKey: "name") as? String == "gaussianBlur" }) |
| #to gen string files | |
| find ./ -name "*.m" -exec echo {} \; -exec genstrings -a -o en.lproj {} \; | |
| #proper macros | |
| NSLocalizedStringWithDefaultValue |
| @interface Tools: NSObject | |
| + (UIColor *)colorWithHex:(NSUInteger)hex; | |
| @end | |
| @implementation Tools | |
| + (UIColor *)colorWithHex:(NSUInteger)hex |