Skip to content

Instantly share code, notes, and snippets.

View swizzlevixen's full-sized avatar
💁‍♂️
🦋

Mark Boszko swizzlevixen

💁‍♂️
🦋
View GitHub Profile
@swizzlevixen
swizzlevixen / icosahedron_face.py
Created October 21, 2017 02:20
Trying to perfectly numerically balance numbers on the surface of a d20 icosahedron for fairness.
#!/usr/bin/env python3
"""
Balanced d20 Icosahedron
Code to determine the ideal balanced number layout for a d20 die, so that
it is the most "fair", as explained on this page from The Dice Lab:
http://www.mathartfun.com/thedicelab.com/BalancedStdPoly.html
“The numberings of The Dice Lab's d20 and d30 were worked out by Bob Bosch,
a Professor of Mathematics at Oberlin College.”
{
// init will be called when the challenge starts
// Normally you will put most of your code in the init function,
// to set up event listeners and logic.
// TODO: If we're just picking up, only stop if we're going in the right direction
// TODO: Deal with multiple elevators
// TODO: Don't stop if the current car is full, until we've let off some passengers
init: function(elevators, floors) {
@swizzlevixen
swizzlevixen / BBFlakes.py
Last active June 7, 2018 06:07 — forked from coryalder/BBFlakes.py
Flake8 Script for BBEdit 12 and Python 3
# Never mind.
#
# This functionality has been built in since BBEdit 11.6,
# and works way better. (See the notes below.)
  • Update CHANGELOG.md
  • Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch
@swizzlevixen
swizzlevixen / rev-format.markdown
Last active November 28, 2018 17:52
Convert Rev transcript text file formatting to Markdown; designed for The Omni Show. https://theomnishow.omnigroup.com

Reformat Rev Transcript to Markdown

This document is an archived version. The current version has been moved to my Automation/Transcription Tools repo

Turn this:

Brent:              I'm your host Brent Simmons, in this studio with me is Bob Sterns, executive chef. Say hello, Bob. 

Bob: Hello, Bob.
@swizzlevixen
swizzlevixen / makemkv-keydb-update.sh
Created February 7, 2025 22:59
MakeMKV macOS update keydb.cfg from FindVUK Online Database
#!/bin/zsh
# This script downloads the latest copy of the FindVUK Online Database,
# unzips, and moves it to the logged in user's MakeMKV data directory
# NOTE: This script is designed for use on macOS, with the default
# location for the MakeMKV data directory. If you have changed the
# location in Preferences > General, you will need to edit the line
# that moves the file, near the end of the script.