See https://www.youtube.com/watch?v=4_RJu_TrqO0&feature=youtu.be&t=8h6m40s
$ ruby dilute.rb fib.rb
def fi n
if n < 3
1
else
fib(n-1 + ib(n
end
# bard.rb | |
# bot and rose design rails template | |
NAME = @root.split("/").last | |
# delete unnecessary files | |
run "rm README" | |
run "rm public/index.html" | |
run "rm public/favicon.ico" | |
run "rm public/robots.txt" | |
run "rm -f public/javascripts/*" |
require("spec_helper.js"); | |
require("../../public/javascripts/accounts_new.js"); | |
Screw.Unit(function() { | |
// stow the fixture (plus events) away in an iframe | |
var fixture_freezer = document.createElement("iframe"); | |
$(fixture_freezer).prepend($("#fixture").clone(true)); | |
before(function() { | |
// wipe out dirty dom and restore clean fixture from iframe |
#!/usr/bin/ruby | |
# a ruby script for compiling haml from serve into html. | |
# to use, run "sudo compile.rb *.haml" | |
# puts all the compiled files into /html | |
ARGV.each do |url| | |
url = url.split('.').first | |
`curl http://localhost:4000/#{url} > ./html/#{url}.html` | |
end |
# with rails 3.0.3 | |
rails new bench | |
cd bench/ | |
rvm use --create ree-1.8.7-2010.02@bench | |
gem install bundler && bundle | |
time rails runner | |
# real 0m1.007s | |
# user 0m0.796s | |
# sys 0m0.196s |
#!/bin/bash | |
cd /tmp | |
# "jailbreak" to allow modifications | |
/usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification | |
# make the system writable | |
mount -o remount,rw / | |
# make the stateful_partition executable |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0vH4UwbpG92mfDDv3zKDZzHObCxjqwQuLxVJXgvRbsfyiw6J38LOKrHXRHKibj3iHxQtTgfBqCnuYu2FLNXULiyG0ue2sWsQwmEj7YgPHuiWr4FQ7FEKDLVvtOavZSHj3mIrHJQVQCiTVqSLbMHxz4ncVeaA5AJr6lWtn/QkkLlYA1vE0ClnHDYPWB74yFrcOYoJyUStiePBVLtStYDu9B6dbFI8oQwe/RixiN5dcAkCeOP4L3Yi07WW82NyEZRLyA1mwFLhicuQ8bg/D2oBOWB+ROrNnG8hMQnAwL7FWBfAsNbven0a743so9eugDdIjgRje6a4Uz2KbzhMiklwEQ== chronos@localhost |
Day job: Chief Engineer at Bot & Rose Design | |
Your Rails contributions (if any): Some documentation, bug reports | |
What's your Ruby/Rail experience?: Since Rails 0.14, so about 6 years | |
How do you use GitHub?: Home for my open source libraries, and first stop for finding new code |
08048000-08070000 r-xp 00000000 00:00 6353295 /home/micah/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby | |
08070000-08075000 rwxp 00028000 00:00 6353295 /home/micah/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby | |
08075000-08101000 r-xp 0002d000 00:00 6353295 /home/micah/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby | |
08101000-08102000 r--p 000b8000 00:00 6353295 /home/micah/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby | |
08102000-08103000 rw-p 000b9000 00:00 6353295 /home/micah/.rvm/rubies/ree-1.8.7-2011.03/bin/ruby | |
08103000-08113000 rw-p 00000000 00:00 0 | |
093f3000-1bd6d000 rw-p 00000000 00:00 0 [heap] | |
b67d9000-b67da000 ---p 00000000 00:00 0 | |
b67da000-b6fdb000 rw-p 00000000 00:00 0 | |
b6fdb000-b6fde000 r-xp 00000000 00:00 524315 /home/micah/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-linux/racc/cparse.so |
# shove this in your .bashrc or .bash_profile or whatever | |
function parse_git_dirty { | |
[[ $(git ls-files -o -m --exclude-standard 2> /dev/null) != "" ]] && echo "*" | |
} | |
function parse_git_branch { | |
if type -p __git_ps1; then | |
branch=$(__git_ps1 '%s') | |
if [ -n "$branch" ]; then | |
echo -e "[$branch]" | |
fi |
See https://www.youtube.com/watch?v=4_RJu_TrqO0&feature=youtu.be&t=8h6m40s
$ ruby dilute.rb fib.rb
def fi n
if n < 3
1
else
fib(n-1 + ib(n
end