Skip to content

Instantly share code, notes, and snippets.

View rick's full-sized avatar
🎧
Quietly doing

Rick Bradley rick

🎧
Quietly doing
View GitHub Profile
me:
a:
sandwich:
@rick
rick / deploy.yml
Created July 16, 2012 16:47
config for rick
demo:
domain: "demo@xxx.private.connamara.com"
deploy_to: "/home/demo/customer_DEMO"
repository: "git@github.com:connamara/customer_reporting.git"
post_deploy_script: "script/post_deploy.sh"
post_setup_script: "script/post_setup.sh"
rake_env:
RAILS_ENV: 'production'
@rick
rick / fiddle.css
Created July 10, 2012 00:51 — forked from scopevale/fiddle.css
jQuery UI 1.8 - calculator demo
.ui-calculator { width:9.65em; }
.ui-calculator-container { padding:.2em .2em 0; }
.ui-calculator-display { width:12.3em; padding:.3em; margin-bottom:.3em; font-size:0.7em; overflow:auto; }
.ui-calculator-numberpad, .ui-calculator-functionpad { width:7em; float:left; }
.ui-calculator-functionpad { width:2em; }
.ui-calculator li { float:left; margin:0 .2em .2em 0; }
.ui-calculator-button { display:block; width:2em; height:1.2em; padding:.3em 0 .5em; text-align:center; border:0; }
.ui-calculator-button-wide { width:4.3em; }
.ui-calculator-icon { margin:.2em auto; }
@rick
rick / fiddle.css
Created July 10, 2012 00:51 — forked from scopevale/fiddle.css
jQuery UI 1.8 - calculator demo
.ui-calculator { width:9.65em; }
.ui-calculator-container { padding:.2em .2em 0; }
.ui-calculator-display { width:12.3em; padding:.3em; margin-bottom:.3em; font-size:0.7em; overflow:auto; }
.ui-calculator-numberpad, .ui-calculator-functionpad { width:7em; float:left; }
.ui-calculator-functionpad { width:2em; }
.ui-calculator li { float:left; margin:0 .2em .2em 0; }
.ui-calculator-button { display:block; width:2em; height:1.2em; padding:.3em 0 .5em; text-align:center; border:0; }
.ui-calculator-button-wide { width:4.3em; }
.ui-calculator-icon { margin:.2em auto; }
@rick
rick / nescafe_formatter.rb
Created May 12, 2012 22:30
nescafe formatter for rspec 2.*
require 'rspec/core/formatters/progress_formatter'
class NescafeFormatter < RSpec::Core::Formatters::ProgressFormatter
def example_failed(example)
super
index = failed_examples.size - 1
output.puts "\n"
dump_failure(example, index)
dump_backtrace(example)
output.puts "\n"
@rick
rick / gist:2405833
Created April 17, 2012 13:03
well, that's kind of right...
@ ruby-1.8.7@douche Tue Apr 17 08:01:48 rick@Yer-Moms-Computer-2
~/git/douche (douche2)(*)$ ruby try.rb ~/Desktop/audio/unconverted/flying_bags_of_urine/mci_compatible_autoradioactivity_unit/jeremys_al_green.mp3
(0.448) File [/Users/rick/Desktop/audio/unconverted/flying_bags_of_urine/mci_compatible_autoradioactivity_unit/jeremys_al_green.mp3]
name[Tired Of Being Alone]
artist[Al Green]
duration[162]
url[http://www.last.fm/music/Al+Green/_/Tired+Of+Being+Alone]
albumurl[http://www.last.fm/music/Al+Green/_/Tired+Of+Being+Alone/+albums]
album: "Best Of" => http://www.last.fm/music/Al+Green/Best+Of
album: "The Supreme Al Green" => http://www.last.fm/music/Al+Green/The+Supreme+Al+Green
@rick
rick / gist:2186708
Created March 24, 2012 18:53
emacs daemon/client command-line aliases for Emacs 24 .dmg installation
alias em='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient'
alias emc='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c'
alias emd='/Applications/Emacs.app/Contents/MacOS/Emacs --daemon'
alias emt='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t'
I was part of the small group (wearing suits even, when in Brentwood, dress like the Brentwoodians, I suppose) who went to Wilson and Associates' attorneys offices to deliver a letter asking them to reconsider supporting Chase's efforts to foreclose on a 78-year-old civil rights activist. Chase's chosen alternative to working with Miss Bailey is to lose $20K-$30K by taking the property to a foreclosure auction.
We made no secret that we were coming to deliver a letter. They refused to open the door to their reception office when we knocked, repeatedly. Then the UPS delivery man wheeled his cart out and we let him through, only to find there had been people hiding (literally hiding) behind the door to shove it closed immediately behind him.
After that they refused to open, to answer their phones, and ultimately called security and police to have us leave the premises (we were as peaceful and quiet as it comes, for the record -- film forthcoming). We tried to slide our letter under the door and it was block
~/git/santorum (import_export_etc)$ irb
ruby-1.8.7-p334 :001 > def self() self end
nil
ruby-1.8.7-p334 :002 > alias yermom self
nil
ruby-1.8.7-p334 :003 > class << yermom
ruby-1.8.7-p334 :004?> end
nil
ruby-1.8.7-p334 :005 >
@rick
rick / 001-Isolate
Created November 15, 2011 00:17
the reality of using a "microframework"
# what I put in an Isolate gem list, ok, so "gem install isolate" first...
gem "sinatra", "1.3.1"
gem "haml", "3.1.3"
gem "sass", "3.1.10"
gem "activerecord", "3.1.1"
gem "sqlite3", "1.3.4"
gem "sinatra-activerecord", "0.1.3"
gem "rack", "1.3.5"
gem "bacon", "1.1.0"