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
# Textmate essential bundles | |
cd ~/Library/Application\ Support/TextMate/Pristine\ Copy/Bundles | |
# mkdir -p cd /Applications/TextMate.app/Contents/SharedSupport/Bundles | |
git clone git://github.com/protocool/ack-tmbundle.git Ack.tmbundle | |
git clone git://github.com/textmate/ruby-haml.tmbundle.git | |
git clone git://github.com/seaofclouds/sass-textmate-bundle.git "Ruby Saas.tmbundle" | |
git clone git://github.com/bmabey/cucumber-tmbundle.git Cucumber.tmbundle | |
git clone git://github.com/karnowski/blue-ridge-tmbundle.git JavaScript\ Blue\ Ridge.tmbundle | |
git clone git://github.com/johnmuhl/nginx-tmbundle.git nginx.tmbundle |
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
Global setup: | |
Download and install Git | |
git config --global user.name "panfu" | |
git config --global user.email panfu.gz@gmail.com | |
Next steps: | |
mkdir mochiweb_example | |
cd mochiweb_example | |
git init | |
touch README |
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、Object 用 TheSomeone // 先祖的权威 | |
* 方法名称 doSomething // 动宾,够醒目 | |
* 文件名称 the_file // 网络传输可能会忽略大小写、可读性 | |
* 普通变量 some_variables // 可读性 | |
* CSS class: the-class-name | |
* CSS id: the_some_one |
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
(global-set-key "\C-c\C-d" "\C-a\C- \C-n\M-w\C-y") | |
;; (menu-bar-mode 0) | |
(tool-bar-mode 0) | |
(define-key global-map [menu-bar tools] nil) | |
(add-to-list 'load-path "~/emacs") | |
(require 'my_config) |
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
# chef-server as ssh tunnel (reverse-proxy) for Mac OS X 10.6 SL | |
# Based loosely on Readme.rdoc - http://github.com/opscode/chef/ | |
# port install CouchDB (may be broken on Snow Leopard) | |
sudo port install couchdb-devel | |
sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist | |
sudo launchctl unload -w /Library/LaunchDaemons/org.apache.couchdb.plist | |
# check for Trace/BPT trap error | |
couchdb | |
CTRL ^C |
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
function obj(a) { | |
this.a = a; | |
this.b = getB(); | |
function getB() { | |
this.c = 'this is c'; | |
return 'this is b'; | |
} | |
} |
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
require 'cgi' | |
require 'uri' | |
r =<<JS | |
{ | |
"max_character_length": '140', | |
"mouseover_active": false, | |
"hovering_delay": 1000, | |
"translations": { | |
"button_change": "Change", |
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
# 1. 更改git转码设置 | |
git config core.quotepath false | |
# 2. 第一步完成后, git status 还是看不到正确编码的话, 修改命令行窗口的编码格式, 一般修改为gb2312即可 | |
# 3. 还是不行的话, 自己找解决办法, 找到后告诉我在此补充! |
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
# ls .. | |
alias ls='ls -G' | |
alias ll='ls -hla' | |
# ror script | |
alias sc="./script/console" | |
alias ss="./script/server" | |
# git alias | |
alias gmm="git merge master" |
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
Show hidden characters
{ | |
// -------------------------------------------------------------------- | |
// JSHint Configuration, Strict Edition | |
// -------------------------------------------------------------------- | |
// | |
// This is a options template for [JSHint][1], using [JSHint example][2] | |
// and [Ory Band's example][3] as basis and setting config values to | |
// be most strict: | |
// | |
// * set all enforcing options to true |
NewerOlder