Skip to content

Instantly share code, notes, and snippets.

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

Mark Boszko swizzlevixen

💁‍♂️
🦋
View GitHub Profile
@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.
  • 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 / 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.)
{
// 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 / 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.”

Keybase proof

I hereby claim:

  • I am bobtiki on github.
  • I am bobtiki (https://keybase.io/bobtiki) on keybase.
  • I have a public key ASD3KW7dTV1Jw6fDQ59yTRz94mK4i1cYB6YczHb7IW2g6go

To claim this, I am signing this object:

@swizzlevixen
swizzlevixen / osx-server-well-known.markdown
Last active December 6, 2015 18:04
Trying to resolve a conflict with OS X Server and a web directory named "/.well-known" so I can authorize a letsencrypt.org certificate.

I'm trying to figure out if OS X Server has, for some reason, reserved the directory name /.well-known, and if so, how to work around it, so that I can authenticate my server for requesting an SSL certificate with letsencrypt.org.

During the letsencrypt authentication process, I must put a challenge response on my server, at the URL path:

http://example.com/.well-known/acme-challenge/<challenge key>

However, while dot-hidden paths like /.the-directory are served just fine, I seem to have narrowed down

@swizzlevixen
swizzlevixen / ticket-scanner.py
Created August 10, 2015 00:21
Python OpenCV program to extract ticket stub images from photographs, via automatic perspective correction for quadrilateral objects.
#!/usr/local/bin/python
# coding: utf-8
import cv2
import sys
import numpy
from matplotlib import pyplot as plt
from scipy.spatial import distance
"""
@swizzlevixen
swizzlevixen / virtualenv-py3-django.markdown
Last active August 29, 2015 14:24
Making a virtual environment with Python 3.4 and Django on Mac OS X

Tested on OS X 10.10.4 Yosemite, 2015-07-06

Install Python 3.4 from downloadable installer from https://www.python.org/downloads/

mkvirtualenv --python=/Library/Frameworks/Python.framework/Versions/3.4/bin/python3 envname

(To re-start the virtualenv, workon envname)

Install basics: