Skip to content

Instantly share code, notes, and snippets.

View jon's full-sized avatar

Jon Olson jon

View GitHub Profile
Trapped in a mandatory recruiting meeting. We are, it seems, hiring for just about everything. Doing my part:
Dir Sir or Madam,
Fancy a trip to Seattle? Talk to me about jobs at Amazon. We're actively hiring for Software Development Engineers, Software Development Engineers in Test, Web Development Engineers, Quality Assurance Engineers, and many other positions. The project is super secret, but I have been authorized to tell you that perks include a free pony and beer.
Your friend,
Jon Olson
Amazon.com
//
// Prefix header for all source files of the 'Folio' target in the 'Folio' project
//
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import <CoreGraphics/CoreGraphics.h>
#import <CoreText/CoreText.h>
//
// Prefix header for all source files of the 'MobileAugers' target in the 'MobileAugers' project
//
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define nonatomic_retainProperty(prop, value) do { if (prop != value) { [prop release]; prop = [value retain]; } } while(0);
#define nonatomic_copyProperty(prop, value) do { if (prop != value) { [prop release]; prop = [value copy]; } } while(0);
require 'rubygems'
require 'octopi'
require 'lighthouse'
require 'pp'
include Octopi
include Lighthouse
@username, @project, @lighthouse_account, @lighthouse_token, @lighthouse_project = ARGV
#!/bin/sh
if ! [ "$#" = "1" ]; then
echo "Usage: $0 <submodule name>"
exit 1
fi
name="$1"
path=$(git config -f .gitmodules submodule."$name".path)
//
// BPIdentityTableViewCell.h
//
// Created by Jon Olson on 12/06/09.
// Copyright 2010 Ballistic Pigeon, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
@jon
jon / gist:307651
Created February 18, 2010 13:32
Convenient script to tack on as a "Run Script" action at the end of iPhone build targets.
PACKAGING_DIR="$BUILT_PRODUCTS_DIR/$PRODUCT_NAME-tmp"
rm -rf "$PACKAGING_DIR" || exit 1
mkdir -p "$PACKAGING_DIR/Payload" || exit 1
cp -R "$BUILT_PRODUCTS_DIR/$WRAPPER_NAME" "$PACKAGING_DIR/Payload" || exit 1
$( cd "$PACKAGING_DIR" && ditto -c -k --keepParent --rsrc ./Payload "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.ipa" ) || exit 1
#!/usr/bin/ruby
require 'osx/cocoa'
include OSX
require_framework 'ScriptingBridge'
Xcode = SBApplication.applicationWithBundleIdentifier 'com.apple.Xcode'
Xcode.sourceDocuments.get.each { |d|
d.closeSaving_savingIn(('ask '.unpack('N').first), nil)
@jon
jon / BPTextFieldViewController.h
Created February 9, 2010 22:15
A table view containing a single editable text field
//
// BPTextFieldViewController.h
//
// Created by Jon Olson on 10/2/09.
// Copyright 2009 Ballistic Pigeon, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
@jon
jon / BPButtonTableViewCell.h
Created February 9, 2010 18:50
A tappable button cell for UITableViews
//
// BPButtonTableViewCell.h
// Brewtool
//
// Created by Jon Olson on 9/24/09.
// Copyright 2009 Ballistic Pigeon, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>