Skip to content

Instantly share code, notes, and snippets.

Eric Allam ericallam

Block or report user

Report or block ericallam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CLLocationManager+MockingLocation.h
#import <CoreLocation/CoreLocation.h>
extern CLLocationDegrees kMockedLatitude;
extern CLLocationDegrees kMockedLongitude;
@interface CLLocationManager (MockingLocation)
+ (BOOL)custom_locationServicesEnabled;
+ (CLAuthorizationStatus)custom_authorizationStatus;
-(void)custom_startUpdatingLocation;
View Ruby Notepad Bookmarklet
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
@ericallam
ericallam / example.sass
Created Dec 14, 2012
Sass mode for CodeMirror 3 (WIP)
View example.sass
// This is a comment
/* This comment is
* several lines long.
* since it uses the CSS comment syntax,
* it will appear in the CSS output. */
@import "foo.scss"
@import "foo.css"
View gist:3834304
AutomationBugRepro2 $ xcodebuild -sdk iphonesimulator6.0 clean build CONFIGURATION_BUILD_DIR=/tmp/AutomationBugRepro
Build settings from command line:
CONFIGURATION_BUILD_DIR = /tmp/AutomationBugRepro
SDKROOT = iphonesimulator6.0
=== CLEAN NATIVE TARGET AutomationBugRepro2 OF PROJECT AutomationBugRepro2 WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
Clean.Remove clean /var/folders/s0/gdl8b96x58z1yyfdq9nw52n80000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/AutomationBugRepro2-Prefix-eixjzcivjkzfznebbbrrtbciywri/AutomationBugRepro2-Prefix.pch.pth
builtin-rm -rf /var/folders/s0/gdl8b96x58z1yyfdq9nw52n80000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/AutomationBugRepro2-Prefix-eixjzcivjkzfznebbbrrtbciywri/AutomationBugRepro2-Prefix.pch.pth
@ericallam
ericallam / gist:3828454
Created Oct 3, 2012
AutomationExample Output
View gist:3828454
$ ./run_automation.sh
Make sure you are using Xcode 4.3.3
Build settings from command line:
CONFIGURATION_BUILD_DIR = /tmp/AutomationExample
SDKROOT = iphonesimulator6.0
=== BUILD NATIVE TARGET AutomationExample OF PROJECT AutomationExample WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
ProcessInfoPlistFile /tmp/AutomationExample/AutomationExample.app/Info.plist AutomationExample/AutomationExample-Info.plist
@ericallam
ericallam / slicehost.sh
Created Jun 22, 2012
Provisioning a slicehost for RoR
View slicehost.sh
# Provisioning a slicehost for RoR
apt-get update
apt-get upgrade -y
# install dependencies
/usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion libcurl4-openssl-dev
# install rvm
sudo curl -L https://get.rvm.io | bash -s stable --ruby
@ericallam
ericallam / speaker.md
Created Jun 10, 2012 — forked from matiaskorhonen/speaker.md
Frozen Rails Talk Proposal Template (http://2012.frozenrails.eu/)
View speaker.md
@ericallam
ericallam / gist:2855197
Created Jun 1, 2012
All ActiveSupport::Notifications that Rails instruments
View gist:2855197
receive.action_mailer
deliver.action_mailer
write_fragment.action_controller
read_fragment.action_controller
exist_fragment?.action_controller
expire_fragment.action_controller
write_page.action_controller
expire_page.action_controller
start_processing.action_controller
process_action.action_controller
@ericallam
ericallam / application.css
Created May 1, 2012
Rails generated manifest files
View application.css
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
@ericallam
ericallam / commits.txt
Created Apr 2, 2012
A sample of commits from the lolcode.codeschool.com project
View commits.txt
commit 79d8497573031a08cffa5bf7d844586aa86d9483
Author: Eric Allam
Date: Sat Mar 31 12:43:45 2012 -0400
FIXIN YR SPECS
commit 88e9343e1e06956473462a4a83fed7e8e3c845b4
Author: Nick Walsh
Date: Fri Mar 30 12:07:23 2012 -0400
You can’t perform that action at this time.