Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🦆

Stewart Russell scruss

💭
🦆
View GitHub Profile
@Corteil
Corteil / keybow.py
Last active October 4, 2022 19:53
Modified keybow.py file for KMK firmware
View keybow.py
"""
KMK keyboard for Pimoroni Keybow.
WARNING: This doesn't currently function correctly on the Raspberry Pi Zero,
some of the keys are stuck in the 'pressed' position. There's either a bug in
the keypad implementation on the rpi0, or the pin numbers don't match the pins
in linux.
This is a 4x3 macro pad designed to fit the rpi's GPIO connector. Each key is
attached to a single GPIO and has an APA102 LED mounted underneath it.
@tef
tef / photo.md
Last active September 23, 2022 21:04
View photo.md
@foone
foone / chirp font urls.txt
Last active October 1, 2022 06:42
Filter for the new twitter font
View chirp font urls.txt
https://abs.twimg.com/fonts/chirp-regular-web.woff
https://abs.twimg.com/fonts/chirp-bold-web.woff
https://abs.twimg.com/fonts/chirp-heavy-web.woff
https://abs.twimg.com/fonts/chirp-medium-web.woff
View per-project shell history
# If you, like me, have all of your various source-code-like projects in ~/src/
# this is how to give yourself per-project shell history.
#
# I wish I'd done this years ago.
#
# First, in your .bashrc file, you redefine the cd, pushd and popd builtins to be "do the builtin bit,
# then do one other thing (set_src_history.sh, below) like so:
cd () {
@nevillepark
nevillepark / cbc-mp3.m3u
Last active March 30, 2023 20:51
CBC radio stream URLs
View cbc-mp3.m3u
#EXTM3U
#PLAYLIST:CBC Radio Streams
#EXTINF:-1,CBC Music (Atlantic)
http://cbcmp3.ic.llnwd.net/stream/cbcmp3_cbc_r2_hfx
#EXTINF:-1,CBC Music (Central)
http://cbcmp3.ic.llnwd.net/stream/cbcmp3_cbc_r2_wpg
@BriSeven
BriSeven / get on my lawn .md
Last active October 28, 2022 02:58
Get On My Lawn Software
View get on my lawn .md

Get ON my lawn is a software philosophy that believes good software grows better with time.

Get on my lawm shuns trends and salesmen disguised as programmers.

Get on my lawn shuns the fancy new framework.

@dogtopus
dogtopus / Pipfile
Last active December 23, 2022 14:41 — forked from stecman/_readme.md
Brother P-Touch PT-P300BT bluetooth driver python
View Pipfile
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
pybluez = "*"
pillow = "*"
packbits = "*"
@gnomon-
gnomon- / get-seth-rogen-TTC-announcements.sh
Created August 1, 2018 03:55
Grab the Seth Rogen TTC etiquette announcement WAVs and convert them to appropriately tagged and named FLAC files
View get-seth-rogen-TTC-announcements.sh
#!/bin/bash
# http://twitter.com/bradTTC/status/1024344192061853696
# blame gnomon
# prereqs: curl, awk, flac, metaflac, strings, grep
declare src='https://beta.ttc.ca/about-the-ttc/public-service-announcements'
declare alt='http://www.ttc.ca/sethrogen/index.jsp'
declare -i i=0 j=1
@rhydomako
rhydomako / 2017_04_18_sidewalk_inventory.ipynb
Last active July 22, 2017 00:23
Exploring the City of Toronto Sidewalk inventory using Python
View 2017_04_18_sidewalk_inventory.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ednisley
ednisley / Cylindrical Cell Adapters.scad
Created April 15, 2017 23:55
OpenSCAD source code: Cylindrical cell adapters
View Cylindrical Cell Adapters.scad
// Cylindrical cell adapters
// Ed Nisley KE4ZNU April 2017
//- Extrusion parameters must match reality!
ThreadThick = 0.25;
ThreadWidth = 0.40;
HoleWindage = 0.2;