Skip to content

Instantly share code, notes, and snippets.

View octiwhale's full-sized avatar

Evan Tanner octiwhale

View GitHub Profile
@octiwhale
octiwhale / ev4_decode_f3.sh
Created July 20, 2025 09:43
Convert stereo to EV-4 quadraphonic WAV (32-bit float)
#!/usr/bin/env bash
#
# ev4_decode_f32.sh — Convert stereo to EV-4 quadraphonic WAV (32-bit float)
#
# Usage: ./ev4_decode_f32.sh input_stereo.wav [output_quad.wav]
#
# Description:
# This script decodes a 2-channel (stereo) WAV file into a 4-channel WAV file
# simulating EV-4 (also known as Electro-Voice Stereo-4) quadraphonic sound.
# The output format is 32-bit floating point PCM at 48kHz sample rate.
@octiwhale
octiwhale / fcop.sh
Last active July 12, 2025 10:11
fcop.sh - copy file contents to clipboard
#!/bin/bash
# fcop - Copy file contents to clipboard (quiet version)
FILE="$1"
# Usage check
[ -z "$FILE" ] && { echo "Usage: fcop <filename>"; exit 1; }
# File exists?

Canvas LMS Loaders

I created these loaders, which are identical clones of the ones used on Instructure's Canvas LMS software.

A Pen by Evan on CodePen.

License.

@octiwhale
octiwhale / vcopywrite.js
Created January 10, 2024 05:31
vCopywrite
// Flag to check if shift key is pressed
let vcr_shiftPressed = false;
// Listen for keydown events on the window
// Flag to check if Command (on MacOS) or Ctrl (on other OS) + 'J' is pressed
let vcr_commandOrCtrlPressed = false;
// Listen for keydown events on the window
window.addEventListener('keydown', function(event) {
// Check if the pressed key is 'J' and either Command (metaKey) or Ctrl is pressed