Skip to content

Instantly share code, notes, and snippets.

View jepler's full-sized avatar

Jeff Epler jepler

View GitHub Profile
❬ \N{MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT} U+276c ❬
❰ \N{HEAVY LEFT-POINTING ANGLE BRACKET ORNAMENT} U+2770 ❰
❲ \N{LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT} U+2772 ❲
❴ \N{MEDIUM LEFT CURLY BRACKET ORNAMENT} U+2774 ❴
⟦ \N{MATHEMATICAL LEFT WHITE SQUARE BRACKET} U+27e6 ⟦
⟨ \N{MATHEMATICAL LEFT ANGLE BRACKET} U+27e8 ⟨
⟪ \N{MATHEMATICAL LEFT DOUBLE ANGLE BRACKET} U+27ea ⟪
⟬ \N{MATHEMATICAL LEFT WHITE TORTOISE SHELL BRACKET} U+27ec ⟬
⦃ \N{LEFT WHITE CURLY BRACKET} U+2983 ⦃
⦇ \N{Z NOTATION LEFT IMAGE BRACKET} U+2987 ⦇
import os
import math
import sys
import time
import alarm
import board
import displayio
import socketpool
import rtc
@jepler
jepler / code_fx.py
Last active September 30, 2024 21:42
# SPDX-FileCopyrightText: Copyright 2024 Jeff Epler for Adafruit Industries
# SPDX-License-Identifier: MIT
import os
import collections
import io
import random
import board
import keypad
import time
import audiobusio
import audiomixer
import audiomp3
import board
decoders = [audiomp3.MP3Decoder("discovered-32.mp3") for _ in range(11)]
mixer_buffer_size = 1536 * 6
mixer = audiomixer.Mixer(
@jepler
jepler / code.py
Last active September 28, 2024 02:31
import array
import rp2pio
import board
import adafruit_pioasm
import time
import supervisor
# MIT licensed https://github.com/No0ne/ps2pico/blob/main/LICENSE
# https://github.com/tmk/tmk_keyboard/wiki/IBM-PC-AT-Keyboard-Protocol
#!/usr/bin/python
import os
import datetime
import pytz
now = datetime.datetime.now(datetime.UTC)
sz = set()
for tz in pytz.all_timezones:
zone = pytz.timezone(tz)
import array
import rp2pio
import board
import adafruit_pioasm
import time
# MIT licensed https://github.com/No0ne/ps2pico/blob/main/LICENSE
# https://github.com/tmk/tmk_keyboard/wiki/IBM-PC-AT-Keyboard-Protocol
KBD_DATA = board.GP27
#!/usr/bin/env python
import subprocess
import pathlib
import click
def gross_lektor_parser(content):
parsed = {}
for c in content.split("\n---\n"):
if ':' in c:
font="FreeSans:style=Bold";
ww = 64;
hh = 30;
color("#d9d9d9")
linear_extrude(height=.4)
minkowski() {
square([ww, hh], center=true);
circle(d=4, $fn=24);
#include <gmpxx.h>
#include <charconv>
#include <string>
#include <iomanip>
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
for(int i=1; i<argc; i++) {