Skip to content

Instantly share code, notes, and snippets.

View bionboy's full-sized avatar
🌝

Luke Floden bionboy

🌝
View GitHub Profile
@bionboy
bionboy / ffmpeg-apple-tv.sh
Created July 13, 2025 18:26
Convert videos (with ffmpeg) to be compatible with Apple TV "home videos"
function ffmpeg-apple-tv() {
###
# Usage:
# ffmpeg-apple-tv <mode> <test?> <file(s)|pattern>
# Examples:
# ffmpeg-apple-tv copy true video.mkv
# ffmpeg-apple-tv reencode false *.mkv
# ffmpeg-apple-tv compatible *.mkv
###
@bionboy
bionboy / reset.css
Last active June 11, 2025 14:53
My CSS Reset
/*
Inspired by Andy Bell, Stephanie Eckles, etc.
https://piccalil.li/blog/a-more-modern-css-reset/
https://moderncss.dev/modern-css-for-dynamic-component-based-architecture/
*/
@layer reset {
/* #region Document */
@bionboy
bionboy / README.md
Last active March 5, 2025 18:14
Shader replicating old MacOS rainbow mouse loading spinner

Here is a modified version (changed uniforms, and workaround for transparency) I posted on Shadertoy:

embed link

rainbow-loader-shader.webm
image
@bionboy
bionboy / parallax.svelte.ts
Created January 22, 2025 18:51
Parallax Component (Svelte 5)
<script lang="ts">
import type { Snippet } from 'svelte';
import { mode } from 'mode-watcher';
import { Star } from 'lucide-svelte';
type Props = {
title?: string;
titleContent?: Snippet;
foregroundContent?: Snippet;
midgroundContent?: Snippet;
@bionboy
bionboy / clear-youtube-watch-later.js
Created January 22, 2025 18:38
Automated way to clear your "Watch later" playlist on YouTube" (because Google doesn't let you)
/*
Before running this script, make sure to:
1. Open the console
2. make the view emulate mobile
- chose something with a mobile user-agent string, like "iPhone 12 Pro"
3. Now the UI should line up with that this script expects.
*/
// First we need to click the 3-dot menu button to reveal
@bionboy
bionboy / Luke_Floden_Problem_3.py
Last active September 2, 2020 15:48
Numpy Neural Net
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 25 19:04:21 2020
@author: bionboy
references:
https://towardsdatascience.com/lets-code-a-neural-network-in-plain-numpy-ae7e74410795

Keybase proof

I hereby claim:

  • I am bionboy on github.
  • I am bionboy (https://keybase.io/bionboy) on keybase.
  • I have a public key ASASg6IKss4nUDMcWq9KnXjHPfyCiCt-MhCan2IkjJ64Cwo

To claim this, I am signing this object: