I hereby claim:
- I am mikebuss on github.
- I am mikebuss (https://keybase.io/mikebuss) on keybase.
- I have a public key whose fingerprint is 5B8F 6F24 E6DC 5A3D 4D4F DE06 26A0 CD6A B046 EC8F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import Foundation | |
| struct Input { | |
| let numberTestCases: Int // Included in input, but not needed | |
| let testCases: [Int] | |
| } | |
| func inputFromStandardInput() -> Input { | |
| let standardInput = FileHandle.standardInput | |
| let input = standardInput.availableData |
| @property (nonatomic, strong) NSMutableArray *players; | |
| - (NSMutableArray *)players { | |
| if (!_players) { | |
| _players = [[NSMutableArray alloc] init]; | |
| } | |
| return _players; | |
| } |
| lazy var players: [String] = { | |
| var temporaryPlayers = [String]() | |
| temporaryPlayers.append("John Doe") | |
| return temporaryPlayers | |
| }() |
| lazy var players: [String] = self.initialPlayers() | |
| func initialPlayers() -> [String] { | |
| var players = ["John Doe"] | |
| return players | |
| } |
| class TestClass { | |
| lazy var players = TestClass.initialPlayers() | |
| class func initialPlayers() -> [String] { | |
| var players = ["John Doe"] | |
| return players | |
| } | |
| } |
| class Person { | |
| var name: String | |
| lazy var personalizedGreeting: String = { | |
| return "Hello, \(self.name)!" | |
| }() | |
| init(name: String) { | |
| self.name = name | |
| } |
| class MathHelper { | |
| lazy var pi: Double = { | |
| // Calculate pi to a crazy number of digits | |
| return resultOfCalculation | |
| }() | |
| } |
| // | |
| // | |
| // Adapted from: | |
| // | |
| // Original: https://gist.github.com/loudmouth/332e8d89d8de2c1eaf81875cfcd22e24 | |
| // Adds encoding: https://github.com/3D4Medical/glTFSceneKit/blob/master/Sources/glTFSceneKit/GLTF/JSONCodingKeys.swift | |
| // Adds fix for null inside arrays causing infinite loop: https://gist.github.com/loudmouth/332e8d89d8de2c1eaf81875cfcd22e24#gistcomment-2807855 | |
| // | |
| struct JSONCodingKeys: CodingKey { | |
| var stringValue: String |
| echo "Updating certbot..." | |
| sudo apt-get update | |
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository universe | |
| sudo add-apt-repository ppa:certbot/certbot | |
| sudo apt-get update | |
| sudo apt-get install certbot python-certbot-apache | |
| echo "Printing version..." | |
| certbot --version |