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
Twitter rails | |
gem "therubyracer" | |
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS | |
gem "twitter-bootstrap-rails" | |
then do: | |
bundle install | |
then install | |
rails generate bootstrap:install less |
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 "therubyracer" | |
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS | |
gem "twitter-bootstrap-rails" |
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.13' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'mysql2' | |
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
def after_sign_in_path_for(resource) | |
user_videos_path | |
end |
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
class Car | |
def initialize (gas,mile) | |
@gas = gas | |
@mile = mile | |
end | |
def get_gas | |
return @gas | |
end |
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
require_relative 'Car' | |
car = Car.new(20,50) | |
puts "gas: #{car.get_gas} mile: #{car.get_mile}" | |
puts "\n" | |
car.set_gas = 22 | |
car.set_mile = 55 | |
puts "Now.. gas: #{car.get_gas} mile: #{car.get_mile}" |
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
#Installing node for a local user | |
##install the dependcies | |
apt-get install python-software-properties python g++ make | |
##clone node and install | |
mkdir -p ~/local/src | |
cd ~/local/src | |
git clone git://github.com/joyent/node.git | |
cd node |
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
#Install LAMP: Single Script | |
echo "######INSTALLING PHP and apache and all the requriemtns########" | |
sudo apt-get install apache2 libapache2-mod-php5 -y | |
sudo apt-get install php5 mysql-server php-pear php5-mysql php5-suhosin -y | |
echo "######GOING TO ASK FOR PASSWORD HERE#########" | |
sudo apt-get install mysql-client mysql-server mysql-navigator php5-mysql php5-gd -y | |
echo "######checking if everything is installed#########" | |
sudo apt-get install apache2 libapache2-mod-php5 php5 mysql-server php-pear php5-mysql php5-suhosin mysql-client mysql-server mysql-navigator php5-mysql php5-gd -y | |
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
#Installing RVM. | |
-------------------------------- | |
RVM is used for managing GEM sets and ruby versions. There is a lot that you can do with it. For more information visit: [RVM website](https://rvm.io/) | |
##Installing RVM Prereq: | |
echo ######Installing pre pre reqs######### | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install build-essential zlib1g-dev libssl-dev libreadline-dev \ | |
git-core curl libyaml-dev libcurl4-dev libsqlite3-dev apache2-dev -y | |
##Installing RVM more prereq |
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
rake db:reset |