This file contains 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 | |
import SnapKit | |
import AVFoundation | |
enum QRReaderError: Error { | |
case invalidLink | |
case noQRDetected | |
case inputNotAvailable | |
case devideNotAvailable |
This file contains 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 Foundation | |
import UIKit | |
public extension UICollectionView { | |
func register<T: UICollectionViewCell>(_ cellClass: T.Type) { | |
register(cellClass, | |
forCellWithReuseIdentifier: String(describing: T.self)) | |
} | |
func registerView<T: UICollectionReusableView>(_ viewClass: T.Type, |
This file contains 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
// Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen | |
{% if catalogs %} | |
{% set accessModifier %}public{% endset %} | |
import UIKit | |
{% macro enumBlock assets sp %} | |
{{sp}} {% call casesBlock assets sp %} | |
{% endmacro %} | |
{% macro casesBlock assets sp %} | |
{{sp}} {% for asset in assets %} |
This file contains 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
set f to choose folder -- Select Master Folder | |
tell application "Finder" | |
set subF to every folder of folder f | |
repeat with eachFolder in subF | |
set counter to 0 | |
set the_item_name to name of eachFolder | |
set allFiles to (every file of eachFolder) | |
This file contains 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
set sourceFolder to choose folder | |
tell application "Finder" | |
set theFiles to files of sourceFolder | |
repeat with aFile in theFiles | |
set fileName to name of aFile | |
if fileName contains "_" then | |
set poundOffset to offset of "_" in fileName |
This file contains 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 Foundation | |
struct Test1: Codable { | |
var testDate: Date? = nil | |
let name: String | |
let age: Int | |
enum CodingKeys: String, CodingKey { | |
case name |
This file contains 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
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |configuration| | |
configuration.build_settings['SWIFT_VERSION'] = "3.0" | |
end | |
end | |
end |