Skip to content

Instantly share code, notes, and snippets.

View curtisblackwell's full-sized avatar
🐐

Curtis Blackwell curtisblackwell

🐐
View GitHub Profile
@paulirish
paulirish / data-markdown.user.js
Last active February 6, 2024 10:41
*[data-markdown] - use markdown, sometimes, in your HTML
// ==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.
@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
@johndwells
johndwells / gist:2195281
Created March 25, 2012 14:13
Example of fullscreen background images.
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