This file contains 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
[user] | |
name = Mike Cohen | |
email = [email protected] | |
[core] | |
excludesfile = /Users/mike/.gitignore_global | |
[difftool "sourcetree"] | |
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
path = | |
[mergetool "sourcetree"] | |
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" |
This file contains 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
export DISPLAY=:0.0 | |
export LC_ALL=C | |
export PS1="\e[0;36m\H:\W\e[0m (\!)\\$ " | |
append_path() | |
{ | |
if ! eval test -z "\"\${$1##*:$2:*}\"" -o -z "\"\${$1%%*:$2}\"" -o -z "\"\${$1##$2:*}\"" -o -z "\" | |
\${$1##$2}\"" ; then | |
eval "$1=\$$1:$2" | |
fi |
This file contains 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)applicationDidFinishLaunching:(NSNotification *)aNotification | |
{ | |
// Insert code here to initialize your application | |
NSString *myPath = [[NSBundle mainBundle] bundlePath]; | |
NSLog(@"Helper app at %@",myPath); | |
for (int i=0; i<4; ++i) { | |
myPath = [myPath stringByDeletingLastPathComponent]; | |
} | |
NSLog(@"Launching %@",myPath); | |
[[NSWorkspace sharedWorkspace] launchApplication: myPath]; |
This file contains 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 <dlfcn.h> | |
#import <mach-o/loader.h> | |
/* The encryption info struct and constants are missing from the iPhoneSimulator SDK, but not from the iPhoneOS or | |
* Mac OS X SDKs. Since one doesn't ever ship a Simulator binary, we'll just provide the definitions here. */ | |
#if TARGET_IPHONE_SIMULATOR && !defined(LC_ENCRYPTION_INFO) | |
#define LC_ENCRYPTION_INFO 0x21 | |
struct encryption_info_command { |
This file contains 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/UIKit.h> | |
#import "CoLocAppDelegate.h" | |
int main(int argc, char *argv[]) | |
{ | |
int retVal = 0; | |
NSAutoreleasePool *ap = [[NSAutoreleasePool alloc] init]; | |
retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([CoLocAppDelegate class])); | |
[ap release]; |
This file contains 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
@interface MarchingAntsView : NSView { | |
NSPoint clickLoc; | |
NSRect selection; | |
} | |
@end | |
@implementation MarchingAntsView |
This file contains 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
<div> | |
<p style="font: 17px Helvetica,Arial,sans-serif;">Check out this application on the App Store:</p> | |
<table border="0"> | |
<tbody> | |
<tr> | |
<td style="padding-right: 10px; vertical-align: top;"><a href="http://sugarrush-app.com/buy"> <img src="http://a988.phobos.apple.com/us/r1000/035/Purple/6d/5e/fd/mzm.aeldkogr.170x170-75.jpg" border="0" alt="Cover Art" height="170" /> </a></td> | |
<td style="vertical-align: top;"><a style="color: black; text-decoration: none;" href="http://sugarrush-app.com/buy"> | |
<h1 style="font: bold 16px Helvetica,Arial,sans-serif; margin: -2px 0 3px;">Sugar Rush for iPhone</h1> | |
</a> | |
<p style="font: 14px Helvetica,Arial,sans-serif; margin: 0 0 2px;">MC Development</p> |
This file contains 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
<div> | |
<p style="font: 17px Helvetica,Arial,sans-serif;">Check out this application on the App Store:</p> | |
<table border="0"> | |
<tbody> | |
<tr> | |
<td style="padding-right: 10px; vertical-align: top;"><a href="http://itunes.apple.com/us/app/sugar-rush-for-iphone/id429075351?mt=8&ls=1"> <img src="http://a988.phobos.apple.com/us/r1000/035/Purple/6d/5e/fd/mzm.aeldkogr.170x170-75.jpg" border="0" alt="Cover Art" height="170" /> </a></td> | |
<td style="vertical-align: top;"><a style="color: black; text-decoration: none;" href="http://itunes.apple.com/us/app/sugar-rush-for-iphone/id429075351?mt=8&ls=1"> | |
<h1 style="font: bold 16px Helvetica,Arial,sans-serif; margin: -2px 0 3px;">Sugar Rush for iPhone</h1> | |
</a> | |
<p style="font: 14px Helvetica,Arial,sans-serif; margin: 0 0 2px;">MC Development</p> |
This file contains 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
CGSize constraint = CGSizeMake(200000.0, 10.0); | |
CGSize size = [sourceLabel.text sizeWithFont:[UIFont italicSystemFontOfSize:7.0] constrainedToSize:constraint | |
lineBreakMode:UILineBreakModeTailTruncation]; | |
sourceLabel.frame = CGRectMake(318.0 - size.width, | |
quantityPickerView.frame.origin.y, | |
size.width, | |
size.height); |