Skip to content

Instantly share code, notes, and snippets.

Curtis Blackwell curtisblackwell

View GitHub Profile
SlexAxton / .zshrc
Last active Mar 5, 2019
My gif workflow
View .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
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
johndwells / gist:2195281
Created Mar 25, 2012
Example of fullscreen background images.
View gist:2195281
app.backstretchImgs = function() {
$.each($('img.backstretch'), function() {
var $img = $(this);
// bind to resize
$(window).bind('resize', function(event) {
// remember to place into DOM first if you need access to width & height
// access width & height with this.width and this.height
paulirish / data-markdown.user.js
Last active Mar 12, 2019
*[data-markdown] - use markdown, sometimes, in your HTML
View data-markdown.user.js
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <>
// @link
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.