Skip to content

Instantly share code, notes, and snippets.

View erskingardner's full-sized avatar

JeffG erskingardner

View GitHub Profile

Keybase proof

I hereby claim:

  • I am erskingardner on github.
  • I am erskingardner (https://keybase.io/erskingardner) on keybase.
  • I have a public key ASDLEeJwLF1lJe9QZyt9jnHcskIr5iHOkGcWF6vMDstnAwo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 14xczDimfapVMDo1kSUYhwLYVuyYZ4AE4x https://explorer.blockstack.org/address/14xczDimfapVMDo1kSUYhwLYVuyYZ4AE4x
# List of tag ids from spreadsheet.
to_delete = [18784,18115,47438,50918,41470,43254,43249,39577,51512,27977,36212,40711,45077,18340,51647,51391,41513,488,17219,480,11441,26528,11373,31387,32759,27236,38372,39341,38025,38167,39240,43167,36946,37363,13176,481,14056,16786,28574,17641,27794,36336,27981,36704,36706,17697,27983,47791,36441,47513,27834,27237,47287,47358,27652,19361,32083,15549,40809,34407,17649,16682,41340,41341,26222,29911,44684,28134,38510,39076,37375,31424,41966,40031,7431,30576,44967,44961,468,46630,41071,31856,18037,7609,46256,48165,48173,487,38866,42745,13310,9170,48184,41253,16687,41518,13151,17594,49801,49833,8613,51518,36810,11654,171,8607,38430,31386,26886,48991,41469,34146,41446,26527,31740,49008,51507,8873,40935,496,30777,17574,17572,17916,17577,17807,17578,40337,31769,484,51194,32541,18960,50285,482,47455,46782,26530,51231,51400,6963,11755,50185,37319,46328,39355,40034,40376,40326,28292,11548,41976,40157,37011,37012,47200,48825,32715,50079]
# Get Intercom
a = App.find 6
# Get a lis
@erskingardner
erskingardner / failed.sh
Created June 25, 2012 21:17
Failed Homebrew installation of postgresql
This file has been truncated, but you can view the full file.
==> Downloading http://ftp.postgresql.org/pub/source/v9.1.4/postgresql-9.1.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/postgresql-9.1.4.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/postgresql-9.1.4.tar.bz2
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file src/pl/plpython/Makefile
==> ./configure --disable-debug --prefix=/usr/local/Cellar/postgresql/9.1.4 --datadir=/usr/local/Cellar/postgresql/9.1.4/share/postgresql --docdir=/usr/local/Cellar/postgresql/9.1.4/share/doc/postgresql --enable-thread-safety --with-bonjour --with-gssapi --with-krb5 --with-openssl --with-libxml --with-libxslt --with-ossp-uuid --with-python --with-perl ARCHFLAGS='-arch x86_64'
./configure --disable-debug --prefix=/usr/local/Cellar/postgresql/9.1.4 --datadir=/usr/local/Cellar/postgresql/9.1.4/share/postgresql --docdir=/usr/local/Cellar/postgresql/9.1.4/share/doc/postgresql --enable-thread-safety --with-bonjour --with-gssapi --with-krb5 --with-openssl --with-libxml --with-libxslt --with-ossp-uuid --wit
@erskingardner
erskingardner / string_ext.rb
Created August 4, 2011 07:13
Convert String to Boolean value
class String
def to_bool
return true if self == true || self =~ (/(true|t|yes|y|1)$/i)
return false if self == false || self.blank? || self =~ (/(false|f|no|n|0)$/i)
raise ArgumentError.new("invalid value for Boolean: \"#{self}\"")
end
end
static var hasLock : GameObject;
static function GetTouches (runningGameObject : GameObject, index : int) : Touch {
if (runningGameObject === hasLock) {
return Input.GetTouch(index);
}
}
static function TouchCount (runningGameObject : GameObject) : int {
var dial : GameObject;
var snoozeButton : GameObject;
var dialEasing : float = 0.2;
private var dialDrag1 = false;
private var dialTargetAngle = 0.0;
private var dialActualAngle = 0.0;
private var dialVelocity = 0.0;
function Start () {
var lightSource : GameObject;
var brightnessGuiTrigger : GameObject;
var minIntensity : float;
var maxIntensity : float;
var lightIntensity : float;
private var brightnessSliderOpen = false;
function Start () {
Hide();
@erskingardner
erskingardner / my_class.rb
Created May 26, 2011 09:31
Adding ActiveRecord-style callbacks to ActiveResource models
# app/models/my_class.rb
class MyClass < ActiveResource::Base
extend ActiveModel::Callbacks
define_model_callbacks :save
before_save :my_method
def my_method
@erskingardner
erskingardner / after_deploy.rake
Created April 13, 2011 14:55
rake task to tie into heroku_san deployments
# /lib/tasks/after_deploy.rake
desc "notify hoptoad of deployment after we deploy with heroku san"
task :after_deploy => :environment do
puts "-----> notifying hoptoad"
system("rake hoptoad:deploy TO=production REVISION=`git rev-parse HEAD`") ? true : fail
puts "-----> done"