Skip to content

Instantly share code, notes, and snippets.

@gogojimmy
gogojimmy / 網站基本設計參數.md
Last active August 29, 2015 14:01
網站基本設計參數.md

顏色

各種所用顏色的色碼(主色、輔助色...)

字型

  • 字型名稱
  • 基礎大小
  • 基礎行高
  • h1~h6大小
### Keybase proof
I hereby claim:
* I am gogojimmy on github.
* I am gogojimmy (https://keybase.io/gogojimmy) on keybase.
* I have a public key whose fingerprint is 1BD7 6CD9 DB41 5053 7E61 8BD5 7E69 2D01 B612 C9F8
To claim this, I am signing this object:
@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
@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
#

#Coding style:

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

範例:

.styleguide-format {
 border: 1px solid #0f0;
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
Jimmy at gogojimmy in ~/Projects/Personal/babysworld on develop?
$ cap deploy:cold
triggering start callbacks for `deploy:cold'
* 08:05:28 == Currently executing `multistage:ensure'
*** Defaulting to `staging'
* 08:05:28 == Currently executing `staging'
* 08:05:28 == Currently executing `deploy:cold'
* 08:05:28 == Currently executing `deploy:update'
** transaction: start
* 08:05:28 == Currently executing `deploy:update_code'
@gogojimmy
gogojimmy / HPX NPO WordPress 設定及外掛參考.md
Created September 10, 2012 15:30
HPX NPO WordPress 設定及外掛參考

#設定 WordPress

#善用第三方工具

@gogojimmy
gogojimmy / Capistrano-Deployment-Recipe.rb
Created October 11, 2012 01:05 — forked from mrrooijen/Capistrano-Deployment-Recipe.rb
a "base" Capistrano Rails Deployment Recipe. Use it to deploy your Rails application. It is also easily expandable. So feel free to grab this Recipe and add your own tasks/customization!
# Guide
# Configure the essential configurations below and do the following:
#
# Repository Creation:
# cap deploy:repository:create
# git add .
# git commit -am "initial commit"
# git push origin master
#
# Initial Deployment:
  1. 一般 Hash 情況是這樣:
hash = {}
hash[:foo][:bar] = :hello
=> NoMethodError: undefined method `[]=' for nil:NilClass

請建立一個 Hash 可以不管 key 值是否存在都可以自動設定 key 及 value