- The Pickaxe book for Ruby
- The Ruby Way - This was nicer than the Pickaxe
- Well Grounded Rubyist
- Design Patterns
- Practical Object-Oriented Design in Ruby - I'm currently going through this right now, and it's great.
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 EmailController < ApplicationController | |
def create | |
person.add_observer Agent.new | |
person.send_email 'Subject', 'Fred' | |
end | |
private | |
def person | |
@person ||= Person.new |
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
# Remap prefix to C-a | |
set -g prefix C-a | |
unbind C-b | |
#shorten escape time | |
set -sg escape-time 1 | |
# Use 1-based indexes | |
set -g base-index 1 | |
setw -g pane-base-index 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
set t_Co=256 | |
set pastetoggle=<F7> | |
syntax on | |
colorscheme jellybeans | |
set background=dark | |
highlight Normal guibg=black guifg=white | |
set mouse=a | |
set timeout timeoutlen=1000 ttimeoutlen=100 | |
set showcmd | |
:nnoremap <Leader>c :set cursorline!<CR> |
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
let mapleader = "," | |
let g:mapleader = "," | |
set encoding=utf-8 | |
let g:airline_powerline_fonts=1 | |
inoremap ;a <Esc> |
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
#! /bin/bash | |
# | |
# This simple script will get you a pretty decent Ruby development setup | |
# for Debian based machines. | |
# | |
# Included are: Vim, tmux, Git, zsh, Janus*, rbenv. | |
# | |
# Use at your own risk!.. Buhaha | |
# | |
# Created by Doug Yun [email protected] |
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
rinfo: { | |
response: [ | |
{ | |
id: "0", | |
correctAnswer: "checked", | |
correct: "false", | |
value: "" | |
}, | |
{ | |
id: "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
import Ember from 'ember'; | |
import { test } from 'ember-qunit'; | |
// var map = Ember.EnumerableUtils.map; | |
var forEach = Ember.EnumerableUtils.forEach; | |
var run = Ember.run; | |
function validateValues(object, propertyName, values, isTestForValid) { | |
var promise = null; | |
var validatedValues = []; |
OlderNewer