Skip to content

Instantly share code, notes, and snippets.

View superlinkx's full-sized avatar

Alyx Holms superlinkx

View GitHub Profile
@superlinkx
superlinkx / console-jquery.html
Last active June 14, 2022 16:31
Simple debugging console for JavaScript that you can embed in your debugging html. Use html.log(<message>) in your javascript to output to this console. The style can be modified easily to your liking.
<!DOCTYPE html>
<html>
<head>
<style>
#console {
width: 800px;
height: 400px;
background: #575757;
color: white;
margin: 30px auto;
@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