Skip to content

Instantly share code, notes, and snippets.

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

seanritner

💭
I may be slow to respond.
View GitHub Profile
@parkerlreed
parkerlreed / ctp500_print.py
Last active September 25, 2025 21:04
Print to the CTP500 thermal printer from Linux using Bluetooth
import sys
import bluetooth
from PIL import Image
import numpy as np
def convert_image_to_escpos_raster(filepath, width=384, dither=False):
# Load RGBA image and separate alpha mask
img_rgba = Image.open(filepath).convert("RGBA")
alpha = img_rgba.getchannel("A")
@straker
straker / README.md
Last active February 2, 2026 19:08
Basic Pong HTML and JavaScript Game

ICE Out; Abolish ICE

Basic Pong HTML and JavaScript Game

This is a basic implementation of the Atari Pong game, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration