Download the appropriate version for your OS at http://www.vim.org/download.php
vimtutor
require 'spec_helper' | |
describe ApplicationController do | |
controller do | |
def public; head :ok; end | |
end | |
it "should be successful" do | |
get :public | |
response.should be_ok |
TARGET=pomodoro | |
MCU=attiny13 | |
CC=/usr/bin/avr-gcc | |
CFLAGS=-g -Os -Wall -mcall-prologues -mmcu=$(MCU) | |
OBJ2HEX=/usr/bin/avr-objcopy | |
AVRDUDE=/usr/bin/avrdude | |
program : $(TARGET).hex | |
sudo $(AVRDUDE) -c usbtiny -p$(MCU) -U flash:w:$(TARGET).hex |
begin | |
require 'autotest/growl' | |
Autotest::Growl::image_dir = File.join(ENV['HOME'], '.autotest-growl') | |
Autotest::Growl::hide_label = true | |
Autotest::Growl::clear_terminal = false | |
rescue LoadError | |
puts "No Growl support -- gem install autotest-growl" | |
end |
[core] | |
editor = /usr/bin/vim | |
[alias] | |
st = status | |
br = branch | |
d = diff | |
ci = commit -v | |
cia = commit -v -a | |
co = checkout | |
cp = cherry-pick |
def body_tag(&blk) | |
controller_name = controller.class.to_s.underscore.gsub(/_controller$/, '').gsub(/\//,'_') | |
action_name = controller.action_name.underscore.gsub(/_/,'-') | |
content_tag(:body, :id => "#{controller_name}-#{action_name}", :class => controller_name, &blk) | |
end |
require 'yaml' | |
module MyRailsApp | |
module Config | |
extend self | |
def [](key) | |
hash[key.to_sym] | |
end |
Download the appropriate version for your OS at http://www.vim.org/download.php
vimtutor
http://facebook.com/ | |
http://twitter.com/ | |
http://google.com/ | |
http://youtube.com/ | |
http://wordpress.org/ | |
http://adobe.com/ | |
http://blogspot.com/ | |
http://wikipedia.org/ | |
http://linkedin.com/ | |
http://wordpress.com/ |