Skip to content

Instantly share code, notes, and snippets.

View epochblue's full-sized avatar

Bill Israel epochblue

View GitHub Profile
@epochblue
epochblue / hiit-generator.py
Last active August 14, 2018 11:08
Start script for generating random-ish HIIT workouts
#!/usr/bin/env python3
"""
Builds a simple HIIT workout, while trying to be
smart about how it builds it.
Author: Bill Israel <[email protected]>
License: Public Domain
"""
import random
import sys

Are you the owner of the content that has been disabled, or authorized to act on the owner’s behalf?
Yes.

What files were taken down? Please provide URLs for each file, or if the entire repository, the repository’s URL:
https://github.com/epochblue/exercism/blob/master/python/saddle-points/saddle_points.py

Do you want to make changes to your repository or do you want to dispute the notice?
I want to dispute the notice.

Is there anything else you think we should know about why you believe the material was removed as a result of a mistake? (optional)

@epochblue
epochblue / split-audio.py
Created August 2, 2021 12:00
A simple Python script for splitting an audio file using ffmpeg and a set list.
#!/usr/bin/env python3
"""
Split an audio file based on the timestamps in a file containing set information.
Expected format for the setfile is:
HH:MM:SS Track #1
HH:MM:SS Track #2
HH:MM:SS Track #3
@epochblue
epochblue / fc660m.json
Created August 2, 2021 17:56
QMK Mapping for my Clueboard
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "clueboard/66/rev3",
"keymap": "fc660m",
"layout": "LAYOUT_66_ansi",
"layers": [
[
"KC_ESC",
@epochblue
epochblue / play.sh
Created August 21, 2021 18:14
A silly Bash script for playing YouTube audio files on macOS.
#!/usr/bin/env bash
#
# Download the audio from a YouTube video, the play it using the Mac's built-in
# `afplay`.
#
# Note: requires `youtube-tl` (https://github.com/ytdl-org/youtube-dl)
#
yt_url=$1
tmp_file="/tmp/play.m4a"