###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 | |
public enum DisplayType { | |
case unknown | |
case iphone4 | |
case iphone5 | |
case iphone6 | |
case iphone6plus | |
static let iphone7 = iphone6 | |
static let iphone7plus = iphone6plus |
# Xcode 6.2 (6C131e) | |
Swift version 1.1 (swift-600.0.57.4) | |
Target: x86_64-apple-darwin14.1.0 | |
# Xcode 6.3 (6D570) | |
Apple Swift version 1.2 (swiftlang-602.0.49.3 clang-clang-602.0.49) | |
Target: x86_64-apple-darwin14.1.0 | |
# Xcode 6.3.1 (6D1002) | |
Apple Swift version 1.2 (swiftlang-602.0.49.6 clang-602.0.49) |
import Foundation | |
struct NuclearPowerStationOperator { | |
class Storage { | |
var turnOffCores: Bool = false | |
func copy() -> Storage { | |
let new = Storage() | |
new.turnOffCores = turnOffCores | |
return new |
#!/bin/bash | |
# | |
# Use agvtool to set Xcode project build number and create git tag | |
# Note: requires Xcode project configured to use Apple Generic Versioning and git | |
# | |
# Usage: set_agv_ver.sh 123 | |
# | |
# src: https://gist.github.com/rob-murray/8644974 | |
# |
{ | |
"iPhone1,1": | |
{ | |
"name": "iPhone", | |
"cpu": "RISC ARM 11" | |
}, | |
"iPhone1,2": | |
{ | |
"name": "iPhone 3G", |
package references; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import android.util.Log; | |
abstract class DataReader { | |
public static final int INVALID_DATA = -1; |
###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
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |