Skip to content

Instantly share code, notes, and snippets.

Curtis Blackwell curtisblackwell

Block or report user

Report or block curtisblackwell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@SlexAxton
SlexAxton / .zshrc
Last active Sep 13, 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
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
@johndwells
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
paulirish / data-markdown.user.js
Last active Sep 8, 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 <http://paulirish.com/>
// @link http://git.io/data-markdown
// @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.