This file contains 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
ENV["RAILS_ENV"] ||= 'test' | |
require 'rubygems' | |
require 'spork' | |
require File.expand_path(File.join(File.dirname(__FILE__),'..','config','environment')) | |
require File.expand_path(File.dirname(__FILE__) + "/blueprints") | |
require 'spec/autorun' | |
require 'spec/rails' | |
require 'authlogic/test_case' |
This file contains 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
HOME_DIR = "/home/nelson" | |
versions = Dir[File.join('#{HOME_DIR}/.rvm/rubies', "ruby*")] | |
versions.each do |version| | |
version.match(/-([\d\.]\+)-/) | |
ruby_version_string = version.split('/').last | |
ruby_version = $1 |
This file contains 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
### HAML AND DATAMAPPER ###### | |
### Assuming that @episodes is: | |
# | |
# [#<Episode @id=1 @title="Cache Variable">, #<Episode @id=2 @title="Cache Variable"> , #<Episode @id=3 @title="Cache Variable">] | |
# | |
#current_episode | |
- unless @episodes.empty? |
IMPORTANT! Wikified version of this page may be found here. Feel free to edit. :)
Name | Latest Release | Size (KB) | License | Type | Unit Tests | Docs | Notes |
---|---|---|---|---|---|---|---|
The Render Engine | 1.5.3 | MIT | Cross-browser; extensive API; open-source. 2 | ||||
gameQuery | 0.5.1 | CC BY-SA 2.5 | Designed to be used with jQuery | ||||
gTile | 0.0.1 (2008-07-21) | Tile based | |||||
Akihabara | 1.3 | GPL2/MIT | Classic Repro | Intended for making classic arcade-style games in JS+HTML5 3 |
This file contains 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
# = YERB | |
# | |
# Who needs HAML when you have YAML + ERB? ;) | |
# | |
# See example.yaml below for an example. You can run this code | |
# by cloning this gist and then `ruby _yerb.rb example.yaml`. | |
# | |
# Notice that you need Ruby 1.9 so the hash order is preserved. | |
# Obviously, this is just for fun. Definitely slow as hell. | |
# |
This file contains 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 'delegate' | |
module Presenter | |
def presenter | |
presenter = "#{self.class.name}Presenter".constantize | |
presenter.new(self) | |
end | |
# Example of usage: | |
# |
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.