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
""" File: reveal.py | |
Add to ~/.lldbinit: | |
command script import ~/.lldb-scripts/reveal.py | |
Q: Want to automatically load the Reveal lib on launch while debugging from Xcode? | |
A: In Xcode: | |
Add a Symbolic Breakpoint | |
Symbol: "UIApplicationMain" | |
Action: Debugger Command with value "reveal" |
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
body { | |
font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; | |
font-size: 13px; | |
} | |
code { | |
font-family: Courier, Consolas, monospace; | |
font-size: 13px; | |
color: #666; | |
} |
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
{ | |
"showSplash": true, | |
"showSplashDelay": 2 | |
} |
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
use strict; | |
use warnings; | |
if ($ENV{CONFIGURATION} =~ /^Release/) | |
{ | |
my $plist = "$ENV{PROJECT_DIR}/$ENV{INFOPLIST_FILE}"; | |
my $build_number = `/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $plist`; | |
chomp $build_number; | |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use WWW::Mechanize; | |
use LWP::UserAgent; | |
use Mozilla::CA; | |
if (@ARGV != 2 || $ARGV[0] !~ /@/) { |
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 <Foundation/NSObject.h> | |
@interface Fraction: NSObject { | |
int numerator; | |
int denominator; | |
} | |
-(void) print; | |
-(void) setNumerator: (int) n; | |
-(void) setDenominator: (int) d; |
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
typedef void (^XDecodeBlock)(id x); | |
typedef id (^XEncodeBlock)(void); | |
// posing a CLLocationCoordinate2D as a CGPoint because of a bug in NSValue valueWithMKCoordinate... | |
static XEncodeBlock XCLLocationCoordinate2DEncoder(CLLocationCoordinate2D loc) | |
{ | |
return ^{ | |
return [NSValue valueWithCGPoint:CGPointMake(loc.latitude, loc.longitude)]; | |
}; | |
} |
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
use strict; | |
use warnings; | |
use HTTP::Proxy; | |
use HTTP::Proxy::BodyFilter::simple; | |
use HTTP::Proxy::BodyFilter::complete; | |
my $proxy = HTTP::Proxy->new( port => 8123 ); | |
$proxy->push_filter( |
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
$ ./hello deploy heroku --appname *** | |
Please enter your Heroku credentials | |
(Sign up for free at https://api.heroku.com/signup) | |
Email: *** | |
Password: *** | |
Collecting all files in /Users/aufflick/src/misc/hello_app ... (Ctrl-C to cancel) | |
Adding file Makefile.PL | |
Adding file Perloku |
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
diff -Naurd mpfr-3.1.1-a/PATCHES mpfr-3.1.1-b/PATCHES | |
--- mpfr-3.1.1-a/PATCHES 2012-08-30 09:28:51.000000000 +0000 | |
+++ mpfr-3.1.1-b/PATCHES 2012-08-30 09:28:51.000000000 +0000 | |
@@ -0,0 +1 @@ | |
+get_decimal64 | |
diff -Naurd mpfr-3.1.1-a/VERSION mpfr-3.1.1-b/VERSION | |
--- mpfr-3.1.1-a/VERSION 2012-07-03 15:01:13.000000000 +0000 | |
+++ mpfr-3.1.1-b/VERSION 2012-08-30 09:28:51.000000000 +0000 | |
@@ -1 +1 @@ | |
-3.1.1 |