- Indentation - 4 spaces
- Line Length - 80 characters
- Required License in File Header
- variables and functions - lowerCamelCase
- constructor like functions - UpperCamelCase
- constants - ALL_UPPER_CASE_WITH_UNDERSCORES
#!/bin/bash | |
REPO=$1 | |
HOST=$2 | |
CHANGE=$3 | |
PS=$4 | |
DIR=${CHANGE: -2} | |
ssh -t $HOST bash -c "' | |
cd /vagrant/$REPO |
[alias] | |
lg = log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
l = !git --no-pager log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -10 | |
blog = log -p |
Element.addMethods({ | |
setPngBackground: (function() { | |
var IEBelow7 = (function(agent) { | |
var version = new RegExp('MSIE ([\\d.]+)').exec(agent); | |
return version ? parseFloat(version[1]) < 7 : false; | |
})(navigator.userAgent); | |
return function(element, url) { | |
element = $(element); | |
var options = Object.extend({ |
;;; | |
; dot emacs | |
; Prateek Saxena (prtksxna) | |
;;; | |
;; Load Files and Directories | |
(add-to-list 'load-path "~/.emacs.d/plugins") | |
(add-to-list 'load-path "~/.emacs.d/modes/rails") | |
(add-to-list 'load-path "~/.emacs.d/modes/org/lisp") | |
(add-to-list 'load-path "~/.emacs.d/plugins/erc") |
def how_many_tabs(tabkeeper) | |
tabs = "" | |
tabkeeper.times do |t| | |
tabs += "\t" | |
end | |
return tabs | |
end | |
path = gets.chomp | |
unfile = "" |
(defun color-theme-almost-monokai () | |
(interactive) | |
(color-theme-install | |
'(color-theme-almost-monokai | |
((background-color . "#272821") | |
(foreground-color . "#F8F8F2") | |
(cursor-color . "#DAD085")) | |
(default ((t (nil)))) | |
(modeline ((t (:background "white" :foreground "black" | |
:box (:line-width 1 :style released-button))))) |
[user] | |
name = Put a Name | |
email = email@server.com | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = true |
alias andlog='adb logcat *:W| /Users/prateeksaxena/work/dev/utilities/colorlogcat.py' | |
alias fprofile='/Applications/Firefox.app/Contents/MacOS/firefox -profilemanager' | |
alias e='emacs' | |
alias ls='ls -G' | |
alias l='ls -la' | |
alias c='cd' | |
alias g='git' | |
alias cat='less' |
var list = d3.select("ul").selectAll("li").data(DATA.people); |