This file contains hidden or 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
version 7.0 | |
if &cp | set nocp | endif | |
let s:cpo_save=&cpo | |
set cpo&vim | |
let &cpo=s:cpo_save | |
unlet s:cpo_save | |
set cscopeprg=/usr/bin/cscope | |
set cscopetag | |
set cscopeverbose | |
set fileencodings=utf-8,latin1 |
This file contains hidden or 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
set horizontal-scroll-mode off | |
set mark-modified-lines on | |
"\C-J": menu-complete | |
"\C-r": redraw-current-line | |
# By default up/down are bound to previous-history | |
# and next-history respectively. The following does the | |
# same but gives the extra functionality where if you | |
# type any text (or more accurately, if there is any text | |
# between the start of the line and the cursor), |
This file contains hidden or 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
# ---------------------------------------------------------------------- | |
# SHELL OPTIONS | |
# ---------------------------------------------------------------------- | |
# notify of bg job completion immediately | |
set -o notify | |
# Prevents history expansion, so commit -m "Yay!" will work. | |
set +o histexpand | |
# Warn when trying to overwrite file. | |
set -o noclobber |
This file contains hidden or 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
# Set the prefix to Alt-A, also support Ctrl-B | |
set -g prefix M-a | |
set -g prefix2 C-b | |
bind-key M-a send-prefix | |
set -g mode-keys vi | |
# Switch windows using Alt-Left/Right/Number | |
# Select window by name using Alt-Down | |
# Open new window using Alt-N | |
bind -n M-Left prev | |
bind -n M-Right next |
This file contains hidden or 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
*.swp | |
*~ | |
*.DS_Store | |
.svn | |
tags | |
CVS/ |
This file contains hidden or 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
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
sh = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] |
This file contains hidden or 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
# Run command(s) over SSH | |
run() { | |
ssh deploy@${HOST} -t $* || exit 1 | |
} | |
# Transfer all the specified files/directories to working directory | |
upload() { | |
tar czf - $* | ssh deploy@${HOST} tar xzf - -C /etc/chef || exit 1 | |
} |
This file contains hidden or 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
rescue_from = {} | |
# Associate status code with an HTTP status code. First argument is the status | |
# code, second argument is a function that accepts the XHR object. For example: | |
# $.rescueFrom 404, (xhr)-> alert("Oh no, page not found!") | |
$.rescueFrom = (status, fn)-> | |
rescue_from[status] = fn | |
# Default handling for unsuccessulf HTTP status code. Finds and calls most | |
# appropriate handler based on the HTTP status code (see `$.rescueFrom`). |
This file contains hidden or 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
z = require("./src/index") | |
z.listen null, (err)-> | |
console.log "Listening" | |
console.log err if err | |
requests =[ | |
"*1\r\n$7\r\nBROWSER", | |
"*3\r\n$5\r\nVISIT$1\r\n0$20\r\nhttp://labnotes.org/", | |
"*2\r\n$4\r\nWAIT$1\r\n0" |
This file contains hidden or 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
Sinatra is already a tested and proven development option and we plan to continue our quest to make Sinatra development so flexible that it can be used for the smallest one line app or an advanced e-commerce consumer site without sacrificing what makes the development experience so pleasant. |