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
/* | |
show-constants.m | |
Show the control point values for the CAMediaTimingFunction class constants | |
To compile: | |
clang -framework QuartzCore -framework Foundation show-constants.m -o show-constants | |
*/ |
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
# Get location of unparsed Info.plist | |
GS_INFO_PLIST_INPUT=$(basename "$INFOPLIST_FILE" .plist) | |
# Get location of parsed Info.plist | |
GS_INFO_PLIST_PATH="$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/Info" | |
# Get version number from unparsed Info.plist | |
GS_VERSION=$(defaults read "$PROJECT_DIR/$GS_INFO_PLIST_INPUT" CFBundleVersion) | |
# Append local SVN revision number |
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)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation | |
{ | |
if (UIInterfaceOrientationIsLandscape(fromInterfaceOrientation)) { | |
// Fade in instructions | |
[self setInstructionsOpacity:1.0 overTime:0.5]; | |
} | |
} |
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
apps: | |
- name: RSA Vision | |
slogan: Enlightenment to go | |
itunes_url: http://itunes.apple.com/gb/app/rsa-vision/id397348011?mt=8 | |
image: /images/apps/rsa-vision.png | |
description: | |
- > The RSA Vision app brings to you the latest videos from the | |
RSA's free public events programme. You can browse by category, | |
search for videos and compile a playlist of your favourite | |
videos to watch later. |
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
<% for app in @item[:apps]%> | |
<div class="app" id="<%= app[:name].downcase.gsub(' ','-') %>"> | |
<h2> | |
<a href="<%= app[:itunes_link] %>"><%= app[:name] %></a> | |
<span class="appslogan"><%= app[:slogan]%></span> | |
</h2> | |
<a href="<%= app[:itunes_link] %>"><img src="<%= app[:image] %>" class="screenshot" alt="app screenshot" border="0"></a> | |
<div class="description"> | |
<% for desc in app[:description]%> | |
<p><%= desc %></p> |
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 <Foundation/Foundation.h> | |
int main (int argc, char const *argv[]) | |
{ | |
NSAutoreleasePool *arp = [[NSAutoreleasePool alloc] init]; | |
for(size_t i = 0; i < 2; ++i) | |
{ | |
NSLog(@"Hello world"); | |
} |
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 | |
# A simple shell script for helping you do code reviews on patch files. Feed | |
# in the SHA1 for the commit the patch builds on and the path to the patch | |
# file and it'll spin up a new branch for you, check it out and apply the | |
# patch. You can now use your favourite diff tool to review the patch. | |
usage() { | |
printf "usage: %s <sha> <patchfile>\n" $(basename $0) | |
echo |
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
# pymod MOD: find file path to implementation for python module called MOD | |
alias pymod="python -c 'import sys; print(__import__(sys.argv[1]).__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
// | |
// | |
// UIColor+GSAdditions.h | |
// | |
// Created by Simon Whitaker at Goo Software Ltd on 15/09/2011. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIColor (GSAdditions) |
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
$ diff -r TBXML-orig/ TBXML-github-fc2db6c/ | |
Only in TBXML-github-fc2db6c/: .git | |
diff -r TBXML-orig/TBXML.m TBXML-github-fc2db6c/TBXML.m | |
258c258 | |
< while (elementStart = strstr(elementStart,"<")) { | |
--- | |
> while ((elementStart = strstr(elementStart,"<"))) { | |
311c311 | |
< while (elementEnd = strpbrk(elementEnd, "<>")) { | |
--- |
OlderNewer