###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| extension Array { | |
| func first() -> Element? { | |
| if isEmpty { | |
| return nil | |
| } | |
| return self[0] | |
| } | |
| func last() -> Element? { |
| #!/bin/bash | |
| # unzip the .ipa file | |
| unzip -q "$1" | |
| # Default information | |
| displayName=`/usr/libexec/PlistBuddy -c "Print CFBundleDisplayName" Payload/*/Info.plist` | |
| bundleIdentifer=`/usr/libexec/PlistBuddy -c "Print CFBundleIdentifier" Payload/*/Info.plist` | |
| versionName=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Payload/*/Info.plist` |
| func using<T: AnyObject>(object: T, execute: (T) throws -> Void) rethrows -> T { | |
| try execute(object) | |
| return object | |
| } | |
| import UIKit | |
| // Then in some configureView() function of an UIViewController or whatnot… | |
| let label1 = using(UILabel()) { |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| import UIKit | |
| class CopyLabel : UILabel { | |
| // MARK: Setup | |
| override init(frame: CGRect) { | |
| super.init(frame: frame) | |
| configureMenu() | |
| } |
| /*: | |
| This is a concept re-implementation of the @Binding and @State property wrappers from SwiftUI | |
| The only purpose of this code is to implement those wrappers myself | |
| just to understand how they work internally and why they are needed, | |
| ⚠️ This is not supposed to be a reference implementation nor cover all | |
| subtleties of the real Binding and State types. | |
| The only purpose of this playground is to show how re-implementing | |
| them myself has helped me understand the whole thing better |
| enum Demo { | |
| case simple | |
| case oneValue(Int) | |
| case twoValues(String, Double) | |
| case threeValues(one: Int, two: Float, [Int]) | |
| } | |
| //: # Direct exposition in the enum | |
| //: ## Sourcery Template |
| // Xcode 11b1 | |
| @propertyDelegate | |
| struct Clamped<Value: Comparable> { | |
| private var storage: Value | |
| private var clamp: (Value) -> Value | |
| init(min: Value, max: Value, initialValue: Value) { | |
| let clampingFunction = { ($0...$0).clamped(to: min...max).lowerBound } | |
| self.storage = clampingFunction(initialValue) |
| ffmpeg -user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/537.86.7" -i https://branding.arvanvod.com/w4orK6pYLV/wVmowjK7OW/h_,144_200,240_400,360_800,480_1500,720_2500,k.mp4.list/index-f4-v1-a1.m3u8 -c copy Arvin.mkv |