- 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
| 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 protected] | |
| [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' |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.094957888126373291</real> | |
| <key>Green Component</key> | |
| <real>0.11470980197191238</real> |
| var list = d3.select("ul").selectAll("li").data(DATA.people); |
| [ | |
| { | |
| "text": "District", | |
| "children": [ | |
| { | |
| "id": "d1", | |
| "text": "Bellary" | |
| }, | |
| { | |
| "id": "d2", |