Skip to content

Instantly share code, notes, and snippets.

require 'capistrano/ext/multistage'
require 'bundler/capistrano'
require 'capistrano_colors'
#$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require "rvm/capistrano"
set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"")
set :rvm_install_type, :stable
set :rvm_type, :system

#Coding style:

  • 使用兩個半型空白作為縮排。
  • 在 property 宣告中的 : 後面皆一個半型空白。
  • { 的宣告前面加上一個半型空白。

範例:

.styleguide-format {
 border: 1px solid #0f0;
@gogojimmy
gogojimmy / hack.sh
Created March 31, 2012 13:40 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# 以下實用的指令是從下面連結取用的:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@gogojimmy
gogojimmy / .gitconfig
Created January 12, 2012 02:58
My gitconfig file
[user]
name = gogojimmy
email = jimmy@gogojimmy.net
[alias]
co = checkout
st = status
br = branch
ci = commit
di = diff
dc = diff --cached