Skip to content

Instantly share code, notes, and snippets.

set lines=35
set columns=90
set guioptions-=m
set guioptions-=T
set guioptions-=r
set guioptions-=R
set guioptions-=l
set guioptions-=L
set bg=dark
colorscheme molokai
-e x264 -q 20.0 -r 29.97 --pfr -a 1,1 -E faac,copy:ac3 -B 160,160 -6 dpl2,auto -R Auto,Auto -D 0.0,0.0 -f mp4 -4 -X 1280 --loose-anamorphic -m
@ckolderup
ckolderup / gist:963816
Created May 10, 2011 02:22
woman loads manpages from man.cx in w3m
#woman loads manpages from man.cx in w3m, since you sometimes don't get them via homebrew (for good reason: http://goo.gl/zvwvp)
#use `woman w3m` to view the manpage for w3m.
#use `woman 2 wait` to view the page for "wait" from section 2 if you really need this for some reason, I dunno, whatevs
brew install w3m; echo "woman() { if [ \$# -eq 2 ]; then w3m \"http://man.cx/\$2(\$1)\"; else w3m \"http://man.cx/\$1\"; fi; }" >> ~/.bashrc; source ~/.bashrc
@ckolderup
ckolderup / shoes_helper.vim
Created May 22, 2011 22:02
Vim: Bind F2 to open current .rb file as a Shoes app on MacOS
nmap <F2> :!open %:p -a Shoes<CR>
@ckolderup
ckolderup / madlibs.rb
Created May 24, 2011 04:39
Peter's Shoes Madlib program
#Nunca Mas Mad Libs by p.holby
#[email protected]
#I think I'm doing this right putting this info here I don't know I am new at this
#(Editor's note: more information available at http://sorryeveryone.tumblr.com/post/5758964399 )
Shoes.app :height => 750, :width => 800, :title => "Nunca Mas Mad Libs" do
background "#E6B8B8".."#A18181"
title "National Commission on the Disappearance of Persons 1984
Mad Libs!", :top => 25,
:align => "center",
@ckolderup
ckolderup / gist:1147224
Created August 15, 2011 17:12
MacVim: retain current working directory across new windows
" add this to your .gvimrc.
" thanks to Logan for the obvious trick to achieving
" this that I was looking straight past!
if has("gui_macvim")
macmenu &File.New\ Window key=<nop>
map <D-n> :!mvim<CR><CR>
endif
@ckolderup
ckolderup / vimrc.patch
Created November 7, 2011 15:41
syntastic vimrc changes after installing syntastic (via pathogen or whatever)
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_enable_signs=1
let g:syntastic_auto_loc_list=1
run SyntasticEnable ruby
run SyntasticEnable javascript
run SyntasticEnable coffee
run SyntasticEnable haml
run SyntasticEnable perl
@ckolderup
ckolderup / tanstaafl
Created March 5, 2012 05:04
My Inaugural Picaro Game Jam entry
---
gameName: TANSTAAFL
gameDescription: ...or is there?
version: "1"
events:
- id: honeyOnTheCatHair
type: replaceItems
items:
- honey
- catHair
@ckolderup
ckolderup / cd_with_git_histogram.sh
Last active December 14, 2015 14:38
Add a histogram when you cd into any git repos showing your commits across all branches over the past half-year. Requires Zach Holman's `spark` script (`brew install spark`): https://github.com/holman/spark latest version: updated spark-action.rb to take in a directory name. todo: put ruby script in git, change weeks to an optional fileopts flag…
cd() {
if [[ $@ == '-' ]]; then
builtin cd "$@" > /dev/null # We'll handle pwd.
else
builtin cd "$@"
fi
# you could use git rev-parse below instead but it'll trigger in all directories in the repo
if ls .git &> /dev/null; then
echo -e " \033[1;34m"`~/bin/spark-action.rb . 26`"\033[0m"
fi
@ckolderup
ckolderup / gist:5389867
Created April 15, 2013 17:42
no guarantees that this doesn't require some other setting that I have in my config, but here's a start
statusbar = {
# formats:
# when using {templates}, the template is shown only if its argument isnt
# empty unless no argument is given. for example {sb} is printed always,
# but {sb $T} is printed only if $T isnt empty.
items = {
# start/end text in statusbars
barstart = "{sbstart}";
barend = "{sbend}";