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 July 9, 2025 18:53
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 May 19, 2025 06:22
Basic Pong HTML and JavaScript Game

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

  • Score
  • When a ball goes past a paddle, the other player should score a point. Use context.fillText() to display the score to the screen