Skip to content

Instantly share code, notes, and snippets.

View starzonmyarmz's full-sized avatar

Daniel Marino starzonmyarmz

View GitHub Profile
@starzonmyarmz
starzonmyarmz / utf-8-bug-fix.sass
Created May 10, 2012 13:43
Best Bug Fix Ever via @smith
/*
* Yeah, so rake:assets:precompile will fail if this file is ascii, and something
* it imports is utf-8. To fix it, here is a snowman: ☃ (no, really.)
*/
@SBoudrias
SBoudrias / dabblet.css
Created February 19, 2013 00:32
Colorize black element with filters
/**
* Colorize black element with filters
* Webkit-only at the moment (Chrome Canary or Webkit nightlies)
*/
body {
background: pink;
}
div {
@SlexAxton
SlexAxton / .zshrc
Last active April 25, 2023 03:57
My gif workflow
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