Skip to content

Instantly share code, notes, and snippets.

/* the sass file */
/*===============*/
=ultimate-hippie-border(!thickness)
border-top = !thickness "dotted" "magenta"
border-left = !thickness "solid" "orange"
border-right = !thickness "dashed" "green"
border-bottom = !thickness "groove" "blue"
background-color: cyan
#hacks for 256 colors
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"
//IE6 doesnt support min-(height|width), but these 2 hacks
//effectively implement them.
//Details: www.dustindiaz.com/min-height-fast-hack
=min_height_hack(!height)
min-height = !height
height: auto !important
height = !height
=min_width_hack(!width)
min-width = !width
#hacks so i can see zero punctuation at home
209.34.224.71 www.escapistmagazine.com
64.62.134.199 static.escapistmagazine.com
64.62.134.199 static.themis-media.com
209.34.224.72 www.themis-media.com
if exists("g:loaded_nerdtree_edit_menuitem")
finish
endif
let g:loaded_nerdtree_edit_menuitem = 1
call NERDTreeAddMenuItem({
\ 'text': 'start :(e)dit command',
\ 'shortcut': 'e',
\ 'callback': 'NERDTreeStartEditCommand' })
"guard against sourcing the script twice
if exists("g:loaded_nerdtree_view_image_menuitem")
finish
endif
let g:loaded_nerdtree_view_image_menuitem = 1
"if eog isnt installed, bail
if !executable("eog")
finish
endif
"guard against sourcing the script twice
if exists("g:loaded_nerdtree_start_shell_mapping")
finish
endif
let g:loaded_nerdtree_start_shell_mapping = 1
"bind 'S' to NERDTreeStartShell()
call NERDTreeAddKeyMap({
\ 'key': 'S',
\ 'callback': 'NERDTreeStartShell',
@scrooloose
scrooloose / gist-line-number-hack.js
Created June 27, 2010 08:59
A hack to add line numbers to gists, requires jquery
function addLineNumbersToAllGists() {
$('.gist').each( function() {
_addLineNumbersToGist('#' + $(this).attr('id'));
});
}
function addLineNumbersToGist(id) {
_addLineNumbersToGist('#gist-' + id);
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<!--add a couple of gists to the page-->
<script src="http://gist.github.com/454771.js?file=line_number_hacker.js"></script>
<script src="http://gist.github.com/450963.js?file=startshell_mapping.vim"></script>