Skip to content

Instantly share code, notes, and snippets.

View ozwaldorf's full-sized avatar
:shipit:
Dancing in the moonlight

ozwaldorf

:shipit:
Dancing in the moonlight
View GitHub Profile
@ozwaldorf
ozwaldorf / pre-push
Last active December 9, 2023 12:48
Rust Git Hook
#!/usr/bin/bash
HOOK="$(basename "$0")"
FILETYPE=".rs\|Cargo.toml\|Cargo.lock"
# comment and uncomment the steps that should be ran depending on commit/push/etc
STEPS=(
"cargo fmt --check"
"cargo clippy --all-features --all-targets -- -Dclippy::all -Dwarnings"
"cargo test --all"
@ozwaldorf
ozwaldorf / generate.sh
Last active May 4, 2023 21:11
Generate LUT from Arbitrary Color Palettes
#!/bin/bash
if [ "$#" -lt 3 ]; then
echo "Usage: `basename $0` <output filename> <noise level> color1 color2 ..."
exit 1
fi
output=$1
noise=$2
shift 2
@ozwaldorf
ozwaldorf / entire_bee_movie_script
Created November 28, 2016 06:02
The entire bee movie script
According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway because bees don't care what humans think is impossible. Yellow, black. Yellow, black. Yellow, black. Yellow, black. Ooh, black and yellow! Let's shake it up a little. Barry! Breakfast is ready! Ooming! Hang on a second. Hello? - Barry? - Adam? - Oan you believe this is happening? - I can't. I'll pick you up. Looking sharp. Use the stairs. Your father paid good money for those. Sorry. I'm excited. Here's the graduate. We're very proud of you, son. A perfect report card, all B's. Very proud. Ma! I got a thing going here. - You got lint on your fuzz. - Ow! That's me! - Wave to us! We'll be in row 118,000. - Bye! Barry, I told you, stop flying in the house! - Hey, Adam. - Hey, Barry. - Is that fuzz gel? - A little. Special day, graduation. Never thought I'd make it. Three days grade school, three days high school. Those were awkw