https://github.com/ReactiveCocoa/ReactiveCocoa
https://github.com/Alamofire/Alamofire
https://github.com/antitypical/Result
| // | |
| // TrimVideo.swift | |
| // VideoLab | |
| // | |
| // Created by Adam Jensen on 3/28/15. | |
| // Updated for Swift 5 (tested with Xcode 10.3) on 7/30/19. | |
| // MIT license | |
| // | |
| import AVFoundation |
| import Accelerate | |
| import UIKit | |
| public extension UIImage { | |
| public func applyLightEffect() -> UIImage? { | |
| return applyBlur(radius: 30, tintColor: UIColor(white: 1, alpha: 0.3)) | |
| } | |
| public func applyExtraLightEffect() -> UIImage? { | |
| return applyBlur(radius: 20, tintColor: UIColor(white: 0.97, alpha: 0.82)) |
Last updated: October 21st, 2019.
At the time of writing this gist (January 4th, 2017), I was unable to find true sandboxing to separate development and production environments for a Firebase project. The closest we can get is to create two separate Firebase projects -- one for development and one for production.
| // | |
| // Obfuscator.swift | |
| // | |
| // Created by Dejan Atanasov on 2017-05-31. | |
| // | |
| import Foundation | |
| class Obfuscator: AnyObject { | |
| struct Contact: Decodable, CustomStringConvertible { | |
| var id: String | |
| @NestedKey | |
| var firstname: String | |
| @NestedKey | |
| var lastname: String | |
| @NestedKey | |
| var address: String | |
| enum CodingKeys: String, NestableCodingKey { |
| import numpy as np | |
| import cv2 | |
| def correction( | |
| img, | |
| shadow_amount_percent, shadow_tone_percent, shadow_radius, | |
| highlight_amount_percent, highlight_tone_percent, highlight_radius, | |
| color_percent | |
| ): | |
| """ |