An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
| (defun use-theme (theme &optional no-confirm no-enable) | |
| (interactive | |
| (list | |
| (intern (completing-read "Load custom theme: " | |
| (mapcar 'symbol-name | |
| (custom-available-themes)))) | |
| nil nil)) | |
| (progn | |
| (dolist (curtheme (custom-available-themes)) | |
| (disable-theme curtheme)) |
| # -*- coding: utf-8 -*- | |
| # DBからデータを取り出してYAMLにする。生成したYAMLはtmp/fixturesに保存される | |
| namespace :db do | |
| namespace :fixtures do | |
| desc "Extract database data to tmp/fixtures directory." | |
| task :extract => :environment do | |
| fixtures_dir = "#{Rails.root}/tmp/fixtures/" | |
| skip_tables = ["schema_info", "schema_migrations", "sessions"] | |
| ActiveRecord::Base.establish_connection | |
| FileUtils.mkdir_p(fixtures_dir) |
An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.