Skip to content

Instantly share code, notes, and snippets.

View andrew-luhring's full-sized avatar

Andrew Luhring andrew-luhring

View GitHub Profile
@andrew-luhring
andrew-luhring / .inputrc
Created June 15, 2015 16:05
a bunch of helpful stuff for terminal (and bash)
# allows autocomplete to be used with search history, so typing git c and then up arrow would
# bring up your history options that started with git c . WAAAAY faster.
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[1;9D": backward-word
"\e[1;9C": forward-word
# non-case-sensative autocomplete,
set show-all-if-ambiguous on
@andrew-luhring
andrew-luhring / update-preview-tumblr-shortcut.js
Created December 30, 2014 22:19
Copy paste this in your browsers' developer tools console while editing a tumblr theme in the built in tumblr html editor and esc+r will update the preview
(function(){
/**
* inserts a div with text into <div id="log"></div> or whichever element you pass to second param.
* @param {*} - thing - text to log.
* @param {Object} - optional - DOMElement to append to.
*/
function log(thing, _el){
var el = _el || document.getElementById('log')