- MacVim: https://code.google.com/p/macvim/
- Fugitive.vim: https://github.com/tpope/vim-fugitive
- vim-gitgutter: https://github.com/airblade/vim-gitgutter
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
01. about_asserts: TDD, minitest [TDD: Terrence][ minitest: adam ] | |
02. about_nil: nil in ruby (Matt Spell) | |
03. about_object: objects, to_s, object_id (Richmond) | |
04. about_arrays: slicing vs. access (MaRisa) | |
05. about_array_assignment (MaRisa) | |
06. about_hashes (Kelley) | |
07. about_strings (Carter) | |
08. about_symbols (Andrew) (D1 milestone) | |
09. about_regular_expressions (Courey) | |
10. about_methods (Wes) |
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
# Build on the results of our in-class exploration to output, for example: | |
# Give me an... A | |
# Give me a... B | |
# Give me a... B | |
# Give me a... Y | |
# ABBY’s just GRAND! | |
# When given the input of “Abby”. | |
# Note: the “a” vs. “an” |
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
class Cron | |
def self.run! | |
User.send_digests! | |
end | |
end |
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
#!/usr/bin/env ruby | |
# -*- ruby -*- | |
require 'rake/testtask' | |
Rake::TestTask.new() do |t| | |
t.pattern = "test/test_*.rb" | |
end | |
desc "Run tests" | |
task :default => :test |
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
# encoding: UTF-8 | |
# This file is auto-generated from the current state of the database. Instead | |
# of editing this file, please use the migrations feature of Active Record to | |
# incrementally modify your database, and then regenerate this schema definition. | |
# | |
# Note that this schema.rb definition is the authoritative source for your | |
# database schema. If you need to create the application database on another | |
# system, you should be using db:schema:load, not running all the migrations | |
# from scratch. The latter is a flawed and unsustainable approach (the more migrations | |
# you'll amass, the slower it'll run and the greater likelihood for issues). |
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
class Countdown | |
BELL = "\a" | |
COLORS = { | |
'black' => 30, | |
'red' => 31, | |
'green' => 32, | |
'yellow' => 33, | |
'blue' => 34, | |
'magenta' => 35, | |
'cyan' => 36, |
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
month = ARGV[0] | |
year = ARGV[1] | |
puts `cal #{month} #{year}` |
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
puts "Hey there! What's your name?" | |
name = gets.chomp | |
puts name | |
# Give me a K! | |
# Give me a e! | |
# Give me a i! | |
# Give me a t! | |
# Give me a h! |