This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iOS Version: | |
| Build Version: | |
| Device: | |
| Server: | |
| ## Is it reproducible: Yes / Occasionally / One Time / No | |
| ## Description | |
| ## Steps to Produce/Reproduce |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if [ ${CONFIGURATION} == "Release" ]; then | |
| buildNumber=$(git rev-list --count HEAD) | |
| gitHash=$(git rev-parse --short HEAD) | |
| dsyminfo="$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.app.dSYM/Contents/info.plist" | |
| /usr/libexec/PlistBuddy -c "Set :GITHash $gitHash" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${dsyminfo}" | |
| #fi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class ViewController: UIViewController | |
| { | |
| var animationDuration: NSTimeInterval = 1.0 | |
| var springDamping: CGFloat = 0.5 | |
| var tweakerController: TweakerViewController? | |
| let square = UIView(frame: CGRectMake(135.0, 50.0, 50.0, 50.0)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /usr/local/bin/xctool -workspace <Your name>.xcworkspace -scheme “<Your scheme>” -sdk iphonesimulator test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew install xctool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew install jenkins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git --no-pager log --since="8 hours ago" --pretty=oneline > ~/Desktop/log.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dispatch_group_t group = dispatch_group_create(); | |
| dispatch_group_async(group, dispatch_get_main_queue(), ^{ | |
| double delayInSeconds = 2.0; | |
| dispatch_time_t firstTaskPopTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)); | |
| dispatch_after(firstTaskPopTime, dispatch_get_main_queue(), ^(void) { | |
| NSLog(@"Task 1 complete"); | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)setObject:(id <NSCoding>)object forKey:(NSString *)key block:(TMCacheObjectBlock)block | |
| { | |
| if (!key || !object) | |
| return; | |
| dispatch_group_t group = nil; | |
| TMMemoryCacheObjectBlock memBlock = nil; | |
| TMDiskCacheObjectBlock diskBlock = nil; | |
| if (block) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "REDRangeSlider.h" | |
| @interface REDViewController () | |
| @property (strong, nonatomic) REDRangeSlider *rangeSlider; | |
| - (void)updateSliderLabels; | |
| - (void)rangeSliderValueChanged:(id)sender; |