Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jaacob on github.
  • I am jaacob (https://keybase.io/jaacob) on keybase.
  • I have a public key whose fingerprint is 73D7 396B 55E5 CC25 DAAC 0C11 5B07 BBD3 7BF6 3CFE

To claim this, I am signing this object:

@jaacob
jaacob / .zshrc
Created March 22, 2013 15:06 — forked from SlexAxton/.zshrc
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
<?xml version="1.0"?>
<root>
<item>
<name>F19 to F19</name>
<appendix>(F19 to Hyper (ctrl+shift+cmd+opt) + F19 Only, send escape)</appendix>
<identifier>private.f192f19_escape</identifier>
<autogen>
--KeyOverlaidModifier--
KeyCode::F19,
KeyCode::COMMAND_L,
@jaacob
jaacob / sprintly-viewport-scroll.css
Created January 19, 2013 23:59
http://sprint.ly userstyle: I don't like the viewport-height divs that require me to scroll inside of them, especially with all of the visual data that pops in on hover. This Userstyle overrides that so the divs flow as long as they need to and I can scroll with my cursor anywhere on the page.
.items_column > .wrap {
height: 100% !important;
}
@jaacob
jaacob / gist:3917164
Created October 19, 2012 09:33
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@jaacob
jaacob / index.html
Created October 8, 2012 17:39
So you wanna know what this button does before you click on it? Okay! (I tried using pseudo elements for the little nub arrow thingy, but they didn't seem to play well with transitions. Anyone wanna have a crack at it?)
<div class="wrap">
<button class="tip">
What's this do?
<!-- change the class on the span below between 'top', 'right', 'bottom', 'left' -->
<span class="left">It doesn't do anything, don't bother clicking on it.<span class="nub"></span>
</span>
</button>
</div>
@jaacob
jaacob / gist:1315875
Created October 26, 2011 09:28
v1 of a braun-esque button
nav ul li {
list-style-type: none;
display: block;
float: left;
margin-left: 4.8em;
text-align: center;
width: 70px;
height: 70px;