- Create new file with any name i.e.
script.zsh
#!/bin/zsh
[COMMANDS_HERE]
- Configure permissions
$ chmod 755 script.zsh
script.zsh
#!/bin/zsh
[COMMANDS_HERE]
$ chmod 755 script.zsh
delete
script tooI hereby claim:
To claim this, I am signing this object:
import Foundation | |
enum Parameter { | |
enum Module { | |
case partner(PartnerValues) | |
enum Keys: String { | |
case partner | |
} | |
import Foundation | |
protocol Dictionaryable { | |
var keys: [String] { get } | |
var values: [Any] { get } | |
} | |
extension Dictionaryable where Self: Codable { | |
func toDictionary() -> Dictionary<String, AnyObject> { | |
var dictionary = Dictionary<String, AnyObject>() |
import UIKit | |
enum Storyboard: String { | |
case SignUp | |
case TopUp | |
} | |
enum ViewController { | |
enum SignUp: String { | |
case createAccount = "CreateAccountVC" |
import UIKit | |
extension String { | |
private var isURLString: Bool { | |
return URL(string: self) != nil | |
} | |
private var isAssetURL: Bool { | |
let asset = self.components(separatedBy: ".").last | |
return asset == "png" || asset == "jpg" || asset == "pdf" |
class CustomPannableView: UIView { | |
// MARK: Properties | |
private typealias BottomSheetStyle = StyleConstants.Views.BottomSheet | |
private var minimumVelocityToHide = BottomSheetStyle.minimumPanningVelocityToAutoHide | |
private var minimumScreenRatioToHide = BottomSheetStyle.minimumPositionRatioToAutoHide | |
private var animationDuration = BottomSheetStyle.animationDuration | |
private var parentView: UIView? | |
private var completion: (() -> ())? |
extension String { | |
/// Replaces format specifiers (with index) with given arguments. | |
/// (Only works if given arguments are Strings and to replace Strings) | |
/// | |
/// - Parameter arguments: List of String replacements. | |
/// - Returns: This String replaced with given Strings (unless arguments are not a String array) | |
func replaceFormatSpecifiersWithIndex(with arguments: CVarArg...) -> String { | |
guard let args = arguments as? [String] else { return self } |