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
//------------------------------------------------ | |
// VIEWCONTROLLER | |
protocol __baseName__ViewProtocol: class { | |
} | |
final class __baseName__ViewController: UIViewController { | |
private var presenter: __baseName__PresenterProtocol |
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 XCTest | |
let patterns: [String: String] = [ | |
"{": "}", | |
"[": "]", | |
"(": ")" | |
] | |
func isValid(with input: String) -> Bool! { | |
let charArr = input.split(separator: " ") |
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
/* | |
Copyright (C) 2015 Apple Inc. All Rights Reserved. | |
See LICENSE.txt for this sample’s licensing information | |
Abstract: | |
This file contains the foundational subclass of NSOperation. | |
*/ | |
import Foundation |
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
extension Optional where Wrapped == String { | |
func valueOrEmptyString() -> String { | |
guard let value = self else { return "" } | |
return value | |
} | |
} |
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
#!/bin/bash | |
###### | |
# Example: | |
# INPUT: "XXXX-888 [iOS] Fix Floating Button" | |
# OUTPUT: "feature/xxxx-888_fix_floating_button" | |
###### | |
remove_spaces () | |
{ |
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
let animation = CABasicAnimation(keyPath: "opacity") | |
animation.beginTime = CACurrentMediaTime() + 3 | |
animation.fillMode = kCAFillModeForwards | |
animation.isRemovedOnCompletion = false | |
animation.duration = 3 | |
animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear) | |
animation.fromValue = 1 | |
animation.toValue = 0 |