天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。
- gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
# Requirements: | |
# https://github.com/vigetlabs/capistrano_rsync_with_remote_cache | |
# https://github.com/ndbroadbent/turbo-sprockets-rails3 | |
require 'capistrano/recipes/deploy/strategy/rsync_with_remote_cache' | |
Capistrano::Deploy::Strategy::RsyncWithRemoteCache.class_eval do | |
def deploy! | |
update_local_cache | |
prepare_assets | |
update_remote_cache | |
finalize_assets |
# coding: utf-8 | |
require "chatroid" | |
Chatroid.new do | |
set :service, "Twitter" | |
set :consumer_key, "..." | |
set :consumer_secret, "..." | |
set :access_key, "..." | |
set :access_secret, "..." |
# coding: utf-8 | |
require_relative 'string_xor' | |
"hoge".xor("fuga") #=> "\x0E\x1A\x00\x04" | |
# 非破壊的です |
http://sourceforge.net/projects/sourcecodepro.adobe/ からダウンロード・展開して、~/Library/Fonts/に突っ込んで | |
(set-default-font "-apple-Source_Code_Pro-medium-normal-normal-*-*-*-*-*-m-0-iso10646-1") | |
でOK |
class A | |
def foo(num) | |
%w[one two three][num - 1] | |
end | |
end | |
describe A do | |
describe "#foo" do | |
RSpec::Matchers.define :do_foo do |args| | |
match do |instance| |