This file contains 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
Taken from: http://www.joseairosa.com/2009/07/24/easy-css-star-rating-layout/ | |
Images: http://www.joseairosa.com/wp-content/uploads/2009/07/stars.png | |
http://www.joseairosa.com/wp-content/uploads/2009/07/stars_full.png | |
.classification { | |
position: relative; | |
width: 91px; | |
height: 17px; | |
} | |
.classification .cover { |
This file contains 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
IO.foreach("filename.ext") { |line| p line} |
This file contains 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
document.getElementById('youridhere').scrollIntoView(); |
This file contains 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
############ For Vitual Machines ####### | |
sudo locale-gen en_CA.UTF-8 | |
sudo apt-get install ruby git build-essential | |
############ Run Updates ############ | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
############ Reboot ############ |
This file contains 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
#!/bin/bash | |
while [ true ]; do | |
git pull origin master | |
bundle install | |
rake db:migrate | |
rake rake:test:prepare | |
rake spec | |
done |
This file contains 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
class ActiveRecord::Base | |
def as_json(options={}) | |
super(:except => [:created_at, :updated_at]) | |
end | |
end |
This file contains 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 aptitude install build-essential libssl-dev libreadline5 libreadline5-dev zlib1g zlib1g-dev | |
sudo apt-get install libxslt-dev libxml2-dev | |
sudo apt-get install libmysqlclient-dev ruby-dev | |
sudo apt-get install libcurl4-openssl-dev | |
sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev | |
sudo apt-get install libsqlite3-dev | |
sudo apt-get install libreadline-dev | |
### Install Java ### | |
sudo apt-get install openjdk-6-jre-headless |
This file contains 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
.parent | |
{ | |
position: relative; | |
} |
This file contains 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
# encoding: UTF-8 | |
# Add the about comment in the ruby file |
This file contains 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
# Pre-requisite: X-Code Command Line Tools: http://connect.apple.com | |
# install homebrew | |
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" | |
# git | |
brew install git | |
#rbenv |