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
# Mac OSX Mountain Lion | |
# Ruby on Rails Development Environment | |
# RVM | |
curl -L https://get.rvm.io | bash -s stable && rvm install 1.9.3 && rvm install 1.8.7 | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile | |
source ~/.bash_profile | |
# Disable rarely used RDOC |
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
// Targets a select field and turns it into a custom select using html/css and jQuery | |
// converted to js Object: http://www.jankoatwarpspeed.com/post/2009/07/28/reinventing-drop-down-with-css-jquery.aspx | |
function jQuerySelect(select_id){ | |
var _self = this; | |
this.select_id = select_id; | |
this.placeholder = select_id + "_placeholder"; | |
this.target = select_id + "_target"; | |
this.selected = $(this.select_id).find("option[selected]"); | |
this.select_options = $("option","#"+select_id); | |
this.select_class = "dropdown"; |
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
# Don't have wget? http://www.statusq.org/archives/2008/07/30/1954/ | |
# Broken links? Find it here: http://libweb-mirror.veidrodis.com/image_magick/delegates/ | |
wget http://nongnu.askapache.com/freetype/freetype-2.3.9.tar.gz | |
tar zxvf freetype-2.3.9.tar.gz | |
cd freetype-2.3.9 | |
./configure --prefix=/usr/local | |
sudo make | |
sudo make install | |
cd /usr/local/src |