Skip to content

Instantly share code, notes, and snippets.

View jepler's full-sized avatar
💭
I may be slow to respond.

Jeff Epler jepler

💭
I may be slow to respond.
View GitHub Profile
#!/usr/bin/python
import binascii
import sys
import hashlib
import re
import json
import io
from PIL import Image
from PIL.PngImagePlugin import PngInfo
import httpx

You are a GM's assistant operating in the Fate Core system.

Information about the game setting:

The game setting is called The Hex. The Hex is a fortified city on a large navigable river. It's named for its 6 ruling families, which no one in living memory has seen. In practice, it is ruled by the guilds and the Low House of land owners. The Hex is a low-fantasy setting; magic exists, but is seldom overtly seen in this age. A previous forgotten age dabbled more in dark magic; this civilization is buried in a layer of ash under The Hex.

I need a character sheet for the head of the tanners' guild. She is under threat from the city guard for black market dealings

Maris "Cordovan" Alder (pronouns: she/her)

Maris Alder, fondly known among her peers as Cordovan like the rich leather she produces, is a middle-aged woman with rough hands and a sharp mind. As the head of The Hex's tanners' guild, she oversees the crucial craft of turning hides into workable leather. Known to be resourceful, she has leveraged her position to dabble in the black market, skirting the edge of legality. She is respected by her guild but now faces the scrutiny of the city guard who have caught the scent of her illicit activities.

Aspects

High Concept: Shrewd Guildmistress of the Tanners

LOG: Mypy Version: 1.7.0
LOG: Config File: mypy.ini
LOG: Configured Executable: /home/jepler/src/chap/venv/bin/python
LOG: Current Executable: /home/jepler/src/chap/venv/bin/python
LOG: Cache Dir: .mypy_cache
LOG: Compiled: True
LOG: Exclude: []
LOG: Found source: BuildSource(path='src/chap', module='chap', has_text=False, base_dir=None, followed=False)
LOG: Found source: BuildSource(path='src/chap/__main__.py', module='chap.__main__', has_text=False, base_dir=None, followed=False)
@jepler
jepler / convert_initcode.py
Created September 27, 2023 20:30
Convert Arduino_GFX style TFT initialization strings to CircuitPython
(
BEGIN_WRITE,
WRITE_COMMAND_8,
WRITE_COMMAND_16,
WRITE_DATA_8,
WRITE_DATA_16,
WRITE_BYTES,
WRITE_C8_D8,
WRITE_C8_D16,
WRITE_C16_D16,
@jepler
jepler / code.py
Created September 25, 2023 16:33
from displayio import release_displays
release_displays()
import time
import busio
import board
import digitalio
import microcontroller
import dotclockframebuffer
from framebufferio import FramebufferDisplay
From 6e720a37e7b7a2f0523eede0d17c886061624c57 Mon Sep 17 00:00:00 2001
From: Jeff Epler <[email protected]>
Date: Sun, 24 Sep 2023 08:42:05 -0500
Subject: [PATCH 1/2] Add support for enums where the 0-enumerant is translated
to None
---
py/enum.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
#include <stdio.h>
#include <time.h>
#define clocksrc CLOCK_REALTIME
int main() {
struct timespec ts;
clock_gettime(clocksrc, &ts);
printf("Starting at %9ld.%09ld\n", (long)ts.tv_sec, (long)ts.tv_nsec);
ts.tv_nsec = 0;
ts.tv_sec += 1;
import code_tl021wvc02
@jepler
jepler / code.py
Created September 21, 2023 11:03
import asyncio
import board
import keypad
import digitalio
import gc
async def blink(pin, interval, count): # Don't forget the async!
with digitalio.DigitalInOut(pin) as led:
led.switch_to_output(value=False)
for _ in range(count):