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
| # 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) |
| # 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) |
| # ============== 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'; |
| ===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=== |
| #BECOME SUPER USER# | |
| sudo -i | |
| #add sublime to repository# | |
| add-apt-repository ppa:webupd8team/sublime-text-2 | |
| #update# |
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.
| var five = require("../lib/johnny-five.js"), | |
| compulsive = require("compulsive"); | |
| var ED, | |
| priv = new WeakMap(); | |
| /** | |
| * ED | |
| * |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.
You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.