This file contains hidden or 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
| if has("gui_macvim") | |
| " Fullscreen takes up entire screen | |
| set fuoptions=maxhorz,maxvert | |
| " Command-T for CommandT | |
| macmenu &File.New\ Tab key=<D-T> | |
| map <D-t> :CommandT<CR> | |
| imap <D-t> <Esc>:CommandT<CR> | |
| " Command-Return for fullscreen |
This file contains hidden or 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
| set nocompatible | |
| set number | |
| set ruler | |
| syntax on | |
| " Set encoding | |
| set encoding=utf-8 | |
| " Whitespace stuff |
This file contains hidden or 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 'rubygems' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| require 'sqlite3' | |
| require 'active_record' | |
| require 'active_support' | |
| ActiveRecord::Base.establish_connection( | |
| :adapter => "sqlite3", |
This file contains hidden or 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
| class Cigs | |
| def initialize(brand = "Cigarettes") | |
| @brand = brand | |
| end | |
| def light | |
| puts "I'm lighting up a #{@brand}." | |
| end | |
| def smoke | |
| puts "#{@brand} tastes great!" | |
| end |
This file contains hidden or 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
| class Die | |
| def initialize | |
| roll | |
| end | |
| def roll | |
| @numberShowing = 1 + rand(6) | |
| end | |
| def showing |
NewerOlder