A programming language consisting of 4 commands that translates to Brainfuck
bo: move upbO: move rightBo: move downBO: move right
| # Install the Python Requests library: | |
| # `pip install requests` | |
| import requests | |
| def light_candle(app_name, version, email="@"): | |
| # Cria Vela | |
| # POST http://www.velavirtual.com.br/asc/CriaVela.asp |
| struct DateFormat: DateFormatConvertible { | |
| let dateFormat: String | |
| init() { | |
| dateFormat = "" | |
| } | |
| init(format: DateFormatConvertible) { | |
| dateFormat = format.dateFormat | |
| } |
| #!/usr/bin/perl -w | |
| # Inspired on: | |
| # settings: | |
| # .swift files may be set as well, just set "swift" if needed | |
| my $sourceFileExtension = "swift"; | |
| # if set, the script will only check Localizable.strings files, otherwse all available .strings files | |
| my $stringsFileName = "pt-BR.lproj/Localizable.strings"; |
| // ([^#\n]*)\s#([\dA-F]{6}) | |
| // (name: "$1", color: UIColor(hex: 0x$2)), | |
| typealias NamedColor = (name: String, color: UIColor) | |
| extension CGFloat { | |
| var prettyString: String { | |
| let formatter = NumberFormatter() | |
| formatter.numberStyle = .decimal | |
| formatter.roundingMode = .halfUp | |
| formatter.maximumFractionDigits = 10 |
POST https://www1.sistemas.unicamp.br/Mobile/ConsultaSaldo
| Key | Value |
|---|---|
| Content-Type | application/x-www-form-urlencoded |
| enum Resize { | |
| case current | |
| case resize(CGSize) | |
| } | |
| extension UIImage { | |
| func resize(_ resize: Resize) -> UIImage? { | |
| guard case let .resize(size) = resize else { return self } | |
I hereby claim:
To claim this, I am signing this object:
| import UIKit | |
| /// A subclass of NSLayoutConstraint where the constant is in pixels and not points | |
| final class PixelPerfectConstraint: NSLayoutConstraint { | |
| @IBInspectable var constantInPixels: Int = 0 { | |
| didSet { | |
| constant = CGFloat(constantInPixels) / UIScreen.mainScreen().scale | |
| } | |
| } |
| extension String { | |
| mutating func appendLine(line: String = "") { | |
| self += "\n\(line)" | |
| } | |
| mutating func appendMark(mark: String) { | |
| self.appendLine() | |
| self.appendLine("//MARK - \(mark)") | |
| self.appendLine() | |
| } |