Skip to content

Instantly share code, notes, and snippets.

@judsonmitchell
judsonmitchell / Markdown Preview Bookmarklet
Last active December 1, 2015 14:28 — forked from fklingler/Markdown Preview Bookmarklet
This bookmarklet gives you a markdown editor/previewer in your browser in a single click.
data:text/html, <script type="text/javascript" src="https://cdn.rawgit.com/MrMitch/downatello/develop/downatello.js"></script><style type="text/css">#md,#html{position:absolute;top:0;bottom:0;padding:5px;border:none;outline:none;font-family:monaco,consolas,sans-serif;font-size:1em}#md{resize:none;left:0;width:48%;border-right:1px solid black}#html{left:50%;right:0;font-family:sans-serif}</style><textarea id="md" oninput="document.getElementById('html').innerHTML=downatello.toHtml(document.getElementById('md').value);"></textarea><div id="html"></div>

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@judsonmitchell
judsonmitchell / 0_reuse_code.js
Created February 16, 2014 15:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
" Console log from insert mode; Puts focus inside parentheses
imap cll console.log();<Esc>==f(a
" Console log from visual mode on next line, puts visual selection inside parentheses
vmap cll yocll<Esc>p
" Console log from normal mode, inserted on next line with word your on inside parentheses
nmap cll yiwocll<Esc>p