Skip to content

Instantly share code, notes, and snippets.

View lottadot's full-sized avatar

Shane Zatezalo lottadot

View GitHub Profile
@lottadot
lottadot / gist:1133056
Created August 8, 2011 23:43
iOS CLLocation Category to force a custom lat/lon
//
// CLLocation+Simulator.h
// had
//
// Created by Shane Zatezalo on 7/13/11.
// Copyright 2011 Lottadot, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
https://github.com/trptcolin/consistency_fail
https://github.com/dsboulder/query_reviewer
@lottadot
lottadot / gist:750960
Created December 22, 2010 02:02
xcode open projects from CLI
/Developer/Applications/Xcode.app/Contents/MacOS/Xcode *.xcodeproj &
File: /SourceCache/DevToolsBase/DevToolsBase-1763/pbxcore/Target.subproj/PBXTarget.m
Line: 4113
Object: <PBXNativeTarget:0x200a1fd00>
Method: targetBuildContext
Assertion failed: (nil != [self project]) && ![[self project] isClosed]
if ([UIDevice instancesRespondToSelector:@selector(userInterfaceIdiom)]
          && [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
     // on iPad, running as iPad
} else {
     // either not in 3.2, or on an iPhone, or on iPad in iPhone compatability mode
#!/bin/sh
if [ "$BUILD_STYLE" == "Debug" ]; then
echo "Skipping debug"
exit 0;
fi
if [ "$EFFECTIVE_PLATFORM_NAME" == "-iphonesimulator" ]; then
echo "Skipping simulator build"
exit 0;