This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Use Vim settings, rather than Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
set background=dark | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set history=50 " keep 50 lines of command line history |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku console "ENV['COMMIT_HASH']" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample.inject{ |sum, el| sum + el }.to_f / sample.size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem list somegem --remote --all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
search = Sunspot.search(JobPosting) do | |
keywords 'sales' | |
end | |
search.hits.each do |h| | |
ap [ h.score, | |
h.result.attributes.select {|k,v| ["title", "description"].include? k }] | |
end;nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear;while :;do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS));sleep 0.1;done|awk '{a[$3]=0;for(x in a) {o=a[x];a[x]=a[x]+1;printf "\033[%s;%sH ",o,x;printf "\033[%s;%sH*\033[0;0H",a[x],x;}}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Model.order("DATE(created_at)").group("DATE(created_at)").count |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HrtBus::Config.routes_uri = "ftp://216.54.15.3/Anrd/vid.csv" | |
HrtBus::Config.buses_uri = "ftp://216.54.15.3/Anrd/hrtrtf.txt" | |
HrtBus::Config.hydra ||= Typhoeus::Hydra.new | |
HrtBus::Bus.download {|buses| @buses = buses } | |
HrtBus::Route.download {|routes| @routes = routes } | |
HrtBus::Config.hydra.run | |
@routes.each do |route| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sass-convert -F scss -T sass application_styles.css.scss application_styles.css.sass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo security dump-keychain -d login.keychain | grep inet -A23 |