Skip to content

Instantly share code, notes, and snippets.

View NaanProphet's full-sized avatar

Krishna Bhamidipati NaanProphet

View GitHub Profile
@NaanProphet
NaanProphet / padcolors.py
Created February 8, 2023 14:07 — forked from llimllib/padcolors.py
Setting pad colors on the Novation LaunchKey Mini MK3
# This file demonstrates how to use midi codes to control the color of the
# keypads on a Novation LaunchKey mini; There is no official documentation of
# it as far as I can tell
#
# the LaunchKey MK2 Programmer's guide is useful, though not accurate to
# details on the MK3 mini:
# https://customer.novationmusic.com/sites/customer/files/novation/downloads/10535/launchkey-mk2-programmers-reference-guide.pdf
import random
import time
@NaanProphet
NaanProphet / markdown-table-to-html.py
Last active August 25, 2016 00:44 — forked from bsweger/markdown-table-to-html.py
Convert markdown table rows to html (we converted some markdown tables to html so we could use the "scope" attribute in the header rows for accessibility).
import sys
import re
# input: first argument is a file that contains the piped markdown table rows
with open (sys.argv[1]) as f:
content = f.readlines()
rows = []
pattern = re.compile("^\|[ -][ -]+")
@NaanProphet
NaanProphet / compressor.py
Created December 31, 2015 20:30 — forked from andrewbunday/compressor.py
This is how little I trust Compressor's Command Line Interface.
#!/usr/bin/env python
"""
Compressor wrapper script.
"""
import os
import sys
import re
import argparse
import subprocess
import logging