Skip to content

Instantly share code, notes, and snippets.

Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
citizen cobra comet compact complex context
credit critic crystal culture david delta
dialog diploma doctor domino dragon drama
function! DoTabify(num_spaces) range
let view = winsaveview()
execute a:firstline.','.a:lastline.'s@^ *@\=repeat("\t", len(submatch(0)) /' a:num_spaces ') . repeat(" ", len(submatch(0)) %' a:num_spaces ')'
call winrestview(view)
endfunction
command! -nargs=1 -range=% Tabify <line1>,<line2>call DoTabify(<args>)
#!/bin/bash
# http://nedbatchelder.com/blog/201107/caged_python.html
short_banner=true
coproc PYTHONSTARTUP= python -i 2>&1
pid=$! read="${COPROC[0]}" write="${COPROC[1]}"
if $short_banner; then
IFS= read -u$read line || exit
printf %s\\n "$line"
#!/usr/bin/env python2.6
"""xsel-like C++ front-end
Can be used in source as hashbang:
#!/usr/bin/env c++sel
// rest of code
A hashbang, if any, is stripped before compiling.
"""
@rdpate
rdpate / .gitignore
Created July 9, 2011 20:01 — forked from TooTallNate/.gitignore
low-level objc runtime apis
*
!*.m
!Makefile
@rdpate
rdpate / better.md
Created May 16, 2011 23:53
Better by Merlin Mann

Open Mic Night

Better

Politics, celebrity gossip, business headlines, tech punditry, odd news, and user-generated content.

These are the chew toys that have made me sad and tired and cynical.

Each, in its own way, contributes to the imperative that we constantly expand our portfolio of shallow but strongly-held opinions about nearly everything. Then we're supposed to post something about it. Somewhere.