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
{ | |
"customerAutoComplete": { | |
"US": { | |
"value": "on" | |
}, | |
"ALL": { | |
"value": "on" | |
} | |
}, | |
"invoiceAttachments": { |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
class Styler<ViewType: UIView> { | |
private let styler: (ViewType) -> Void | |
init(_ styler: @escaping (ViewType) -> Void) { | |
self.styler = styler |
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 SnapKit | |
import UIKit | |
// MARK: - AutoLayout | |
extension UIView { | |
@discardableResult func addSubview<View: UIView>(_ subview: View, constraintMaker: (View, ConstraintMaker) -> Void) -> View { | |
subview.translatesAutoresizingMaskIntoConstraints = false | |
addSubview(subview) |
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
module Fastlane | |
module Actions | |
class WaitForPodInstanceAvailabilityAction < Action | |
def self.run(params) | |
wait_for_pod_done! | |
end | |
def self.pod_process_exists! | |
output = Fastlane::Actions::sh('ps -aef | awk \'/[p]od /{print $2}\'', log: false) |
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
pipeline { | |
agent none | |
stages { | |
stage('Build') { | |
sh ''' | |
xcodebuild -scheme TestParallel build-for-testing \ | |
-destination 'platform=iOS Simulator,name=iPhone 8,OS=12.0' \ | |
-destination 'platform=iOS Simulator,name=iPhone X,OS=12.0 | |
''' |
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
protocol Features { } | |
protocol Account { | |
var features: Features { get set } | |
} | |
class ProFeatures: Features { | |
} |
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
final class Thing { | |
var some: String | |
var someInt: Int | |
init(builder: (Thing) -> Void) { | |
builder(self) | |
} | |
} |