Skip to content

Instantly share code, notes, and snippets.

View bdice's full-sized avatar
👨‍💻

Bradley Dice bdice

👨‍💻
View GitHub Profile
#!/usr/bin/env bash
#
# Launch devcontainers in a command line interface.
#
# This script can be run from inside of a git repo that defines devcontainers.
# The user is prompted to select one of the devcontainers, then the
# devcontainer is launched. The user can also provide a devcontainer name like
# "cuda12.0-conda" as an argument to this script. If invoked multiple times
# with the same devcontainer configuration, the CLI instances will reuse the
# same running container. After the last shell utilizing that devcontainer is
@bdice
bdice / generate-song.py
Created September 13, 2019 04:24
This script generates song files for the LaTeX package "songs" from charts in the common format copy-pasted from Ultimate Guitar and similar websites, where chords are on one line, aligned by whitespace with the lyrics on the following line.
#!/usr/bin/env python3
import click
import re
"""This script generates song files for the LaTeX package "songs" from chord
charts in the common format copy-pasted from Ultimate Guitar and similar
websites, where chords are on one line, aligned by whitespace with the lyrics
on the following line (after dropping lines with only whitespace).
This script will accomplish most of the task automatically but outputs still
@bdice
bdice / PKGBUILD
Created August 10, 2019 23:09
Arch PKGBUILD for python-vispy with JS submodule
pkgname=python-vispy
pkgver=v0.6.1
pkgrel=2
pkgdesc='A high-performance interactive 2D/3D data visualization library.'
arch=('any')
url='http://vispy.org'
license=('BSD')
depends=('python-numpy')
optdepends=('pyside2: a possible backend'
'python-pyqt5: a possible backend')