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/bin/env ruby | |
# | |
# This script helps you make doxygen comments in Obj-C/C/C++ files in XCode | |
# | |
# Created by Fred McCann on 03/16/2010 - and Edwin. | |
# Adapted for ThisService by Martin Pichlmair 03/29/2011 | |
# http://www.duckrowing.com | |
# |
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/bin python | |
from AppKit import NSMutableDictionary | |
import os | |
# Get the name of the current configuration. | |
configuration = os.environ['CONFIGURATION'] | |
# List of valid configurations where this script should run. | |
configurations_list = ['Beta', 'App Store'] |
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
#!/bin/bash | |
# | |
# (Above line comes out when placing in Xcode scheme) | |
# | |
API_TOKEN=<TestFlight API token here> | |
TEAM_TOKEN=<TestFlight team token here> | |
SIGNING_IDENTITY="iPhone Distribution: Development Seed" | |
PROVISIONING_PROFILE="${HOME}/Library/MobileDevice/Provisioning Profiles/MapBox Ad Hoc.mobileprovision" | |
#LOG="/tmp/testflight.log" |
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
#!/bin/bash | |
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE") | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber""$INFOPLIST_FILE" |
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 printfTreeLevelOfView(UIView *view, int maxLevel) | |
{ | |
UIView *tempView; | |
NSArray *subViews = [view subviews]; | |
static int level = 0; | |
level++; | |
for(tempView in subViews) | |
{ | |
if ( level <= maxLevel) { | |
for (int i = 0; i < level; i++) |
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) pushController: (UIViewController*) controller | |
withTransition: (UIViewAnimationTransition) transition | |
{ | |
[UIView beginAnimations:nil context:NULL]; | |
[self pushViewController:controller animated:NO]; | |
[UIView setAnimationDuration:.5]; | |
[UIView setAnimationBeginsFromCurrentState:YES]; | |
[UIView setAnimationTransition:transition forView:self.view cache:YES]; | |
[UIView commitAnimations]; |
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 <CommonCrypto/CommonDigest.h> // Need to import for CC_MD5 access | |
- (NSString *)md5:(NSString *)str | |
{ | |
const char *cStr = [str UTF8String]; | |
unsigned char result[16]; | |
CC_MD5(cStr, strlen(cStr), result); // This is the md5 call | |
return [NSString stringWithFormat: | |
@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", | |
result[0], result[1], result[2], result[3], | |
result[4], result[5], result[6], result[7], |