Skip to content

Instantly share code, notes, and snippets.

@flyingoctopus
flyingoctopus / archive_github_repo.sh
Created October 17, 2011 22:55 — forked from pgib/archive_github_repo.sh
Put this in your shell's respective dot profile and smoke it!
archive_github_repo()
{
if [ ! -d .git ]; then
echo "You must run this from within the root of your git repo."
exit 1
fi
pwd=`pwd`
repo_url=`git config --local --get remote.origin.url`
repo_name=`echo $repo_url | awk -F / '{print $2}' | sed -e s/.git//`
@flyingoctopus
flyingoctopus / .inputrc
Created September 8, 2011 18:57 — forked from tpope/.inputrc
Basic amenities for vi readline bindings
set keymap vi-insert
Control-a: beginning-of-line
Control-b: backward-char
Control-d: delete-char
Control-e: end-of-line
Control-f: forward-char
Control-k: kill-line
Control-n: next-history
Control-p: previous-history
set keymap emacs-ctlx
@flyingoctopus
flyingoctopus / coffee-stained-paper.js
Created August 31, 2011 23:33 — forked from mnmly/coffee-stained-paper.js
A tiny shim for Paper.js/CoffeeScript prototyping
window.stainedPaper = function (func) {
var canvas = document.createElement('canvas');
document.body.appendChild(canvas);
paper.setup(canvas);
func.call(paper);
};
@flyingoctopus
flyingoctopus / announce_party.js
Created March 14, 2011 21:20
how awesome is this code?
announce_party: function(cb_name, info)
{
info = this.parse_flash_args(info);
var publishHref = window.location.href.split('?')[0];
var chr;
if (info.screen != '' && info.screen != undefined)
{
if (publishHref.indexOf("?")!=-1) {
chr = "&";
}
" Fuck you, help key.
set fuoptions=maxvert,maxhorz
inoremap <F1> <ESC>:set invfullscreen<CR>a
nnoremap <F1> :set invfullscreen<CR>
vnoremap <F1> :set invfullscreen<CR>