Heroku is a simple way to publish your Rails app, and a powerful platform that will allow it to scale. In this episode, Jay McGavren gets you started with your first Heroku app.
- You WANT Rails to fail locally if a gem isn't in your Gemfile
var five = require("../lib/johnny-five.js"), | |
compulsive = require("compulsive"); | |
var ED, | |
priv = new WeakMap(); | |
/** | |
* ED | |
* |
Heroku is a simple way to publish your Rails app, and a powerful platform that will allow it to scale. In this episode, Jay McGavren gets you started with your first Heroku app.
#BECOME SUPER USER# | |
sudo -i | |
#add sublime to repository# | |
add-apt-repository ppa:webupd8team/sublime-text-2 | |
#update# |
===Install Octopress=== | |
git clone git://github.com/imathis/octopress.git | |
cd octopress | |
gem install bundler rake --no-rdoc --no-ri | |
bundle install | |
rake install | |
===Start Blogging=== |
# ============== shell | |
# Case-insensitive globbing. | |
shopt -s nocaseglob; | |
# Do not overwrite files when redirecting using ">", ">&" or "<>". | |
# Note that you can still override this with ">|". | |
set -o noclobber; | |
# UTF-8 all the way. | |
export LC_ALL='en_GB.UTF-8'; |
# 4<w<8, 1<y<10, x and z are 6-sided dice. | |
HOW_MANY = 100000 | |
def range_rand(min,max) | |
min + rand(max-min) | |
end | |
def test_it | |
w = range_rand(4,8) |
# test | |
# A script to calculate some basic stats on Grant Hutchinson's haircuts. | |
# See http://splorp.com/about/haircut/ | |
# | |
# Sample output: | |
# Number of haircuts since December 22, 1998: 53 | |
# Average days between haircuts: 77 | |
# Shortest time between haircuts was April 10, 1999 to May 25, 1999 (45 days) | |
# Longest time between haircuts was August 11, 2007 to December 09, 2007 (120 days) | |
# You'll probably want a haircut in about 63 days (March 08, 2010) |