###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
| #!/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
| /** | |
| * Perform a throwing expression, and throw a custom error in case the expression threw | |
| * | |
| * - parameter expression: The expression to execute | |
| * - parameter error: The custom error to throw instead of the expression's error | |
| * - throws: The given error | |
| * - returns: The return value of the given expression | |
| */ | |
| func perform<T>(_ expression: @autoclosure () throws -> T, orThrow error: Error) throws -> T { | |
| do { |
| # 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) |
| - (void)squareToCircleToRoundedRectangle { | |
| // self.circleView.layer.masksToBounds = YES; | |
| // self.circleView.layer.position = self.circleView.frame.origin; | |
| // self.circleView.layer.anchorPoint = CGPointMake(0.0f, 0.0f); | |
| // self.circleView.layer.cornerRadius = MIN(self.circleView.frame.size.width, self.circleView.frame.size.height) / 2.0f; | |
| CABasicAnimation *anim = [CABasicAnimation animationWithKeyPath:@"cornerRadius"]; | |
| anim.removedOnCompletion = NO; | |
| anim.fromValue = @(self.circleView.layer.cornerRadius); | |
| anim.toValue = @(kKruMainMaxWidthCircleView / 2); |
| NSString *str = @"clear instalation! load database from bundle"; | |
| NSLog(@">> for lowercaseString: \"%@\"", str); | |
| [DPFPSHelper getFPSMethod:NSStringFromSelector(@selector(uppercaseString)) withTarget:str]; | |
| [DPFPSHelper getFPSMethod:NSStringFromSelector(@selector(lowercaseString)) withTarget:str]; | |
| [DPFPSHelper getFPSMethod:NSStringFromSelector(@selector(capitalizedString)) withTarget:str]; | |
| str = [str uppercaseString]; | |
| 2015-11-13 09:42:34.126 EGWWritings[2036:39243] >> for lowercaseString: "Clear instalation! load database from bundle" | |
| 2015-11-13 09:42:34.126 EGWWritings[2036:39243] Method 'uppercaseString' info: | |
| Time working: 0.000038 | |
| FPS = 26379.3 | |
| avgFPS = 22728.6 | |
| 2015-11-13 09:42:34.139 EGWWritings[2036:39243] Method 'lowercaseString' info: | |
| Time working: 0.000009 | |
| FPS = 113359.6 | |
| avgFPS = 116693.7 | |
| 2015-11-13 09:42:34.143 EGWWritings[2036:39243] Method 'capitalizedString' info: |
| social=google&uid=118064698005477220672&app_secret=0c-bc20zu%28b%40h%28wrp%40xb%2B%23v%40%25a8%26amp%3Bvpzfpvdk1%23%3Dm%2Bu0%2B*%29sf_9&first_name=berry&last_name=test&email=berrytest123%40gmail.com&token=eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6ImpIREEyVmx1bjZRTHRBT3c1Q0xFNEEiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzYyMjUwLCJleHAiOjE0MzYzNjU4NTB9.qkvJX-cZum440VGZTGND2IvYaTtYqUi0cwiq1uhpe8Qth-06OTiExBaaI28dEG6Al-Y0NCqZEvdA-KZ5oKbVPrS6Tz9ZpY-oK4Zu2-gBq-v2Yk8tPJohnPD3xgU2GIEkCMM54_ffxa0kC48ujUAOoAeIbcdLqbbmY0EgkgH-GZhPtlMe4SaUY2PLYINzEXkH1RYZGPZKf3GA0c9MEV9mask_i8D_yhLUSCmweVO_PggkjIfmRb0vnQHxWHma6xvbC9ejhGsHQesx-Tt |