Skip to content

Instantly share code, notes, and snippets.

View llkats's full-sized avatar
💭
still affable

Lydia Kats llkats

💭
still affable
View GitHub Profile
@llkats
llkats / .zshrc
Last active August 29, 2015 14:07 — 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
__ __
(..\ /..)
ΛΛ \ / VV
\ \ / /
\ \ / /
\ \--=^^^^^^^^^^^^=--/ /
\ 1000 SIGNUPS /
|_|--------------|_|
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
@if $inset {
-webkit-box-shadow:inset $top $left $blur $color;
-moz-box-shadow:inset $top $left $blur $color;
box-shadow:inset $top $left $blur $color;
} @else {
-webkit-box-shadow: $top $left $blur $color;
-moz-box-shadow: $top $left $blur $color;
box-shadow: $top $left $blur $color;
}
@llkats
llkats / gist:3981688
Created October 30, 2012 17:26 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@llkats
llkats / gist:1927252
Created February 27, 2012 21:34 — forked from baileylo/gist:1926710
gdgt lunch decider
window.setTimeout(
function() {
(Math.floor(Math.random()*(100)) % 2 ) ? console.log('Chipotle') : console.log('Venue');
},
3600000 // deliberate for an hour before deciding
);