Skip to content

Instantly share code, notes, and snippets.

View jimbob88's full-sized avatar
🖊️

James Blackburn jimbob88

🖊️
View GitHub Profile
@jimbob88
jimbob88 / Makefile
Created February 6, 2025 07:43
Draw a Christian cross in the centre of the screen on C64
# Stripped version of cc65/samples/Makefile for simple tgi project
SYS = c64
ifdef CC65_HOME
AS = $(CC65_HOME)/bin/ca65
CC = $(CC65_HOME)/bin/cc65
CL = $(CC65_HOME)/bin/cl65
LD = $(CC65_HOME)/bin/ld65
else
@jimbob88
jimbob88 / Makefile
Created February 6, 2025 07:04
Makefile for building cc65 programs with TGI embedded into `*.d64` file
# Stripped version of cc65/samples/Makefile for simple tgi project
SYS = c64
ifdef CC65_HOME
AS = $(CC65_HOME)/bin/ca65
CC = $(CC65_HOME)/bin/cc65
CL = $(CC65_HOME)/bin/cl65
LD = $(CC65_HOME)/bin/ld65
else
@jimbob88
jimbob88 / Makefile
Created February 6, 2025 06:41
CC65 Makefile
SOURCES = example.c
PROGRAM = example
ifdef CC65_TARGET
CC = cl65
CFLAGS = -t $(CC65_TARGET) -O --create-dep $(<:.c=.d)
LDFLAGS = -t $(CC65_TARGET) -m $(PROGRAM).map
else
CC = gcc
@jimbob88
jimbob88 / README.md
Created February 6, 2025 05:53
cc65: C64 Hello World

Print "Hello World!" on C64

This follows the tutorial found in the c65 documentation overview to print hello world on the screen.

vice-screen-2025020605523915

@jimbob88
jimbob88 / Dockerfile
Created March 1, 2024 18:14
Build Prizm SDK and FXSDK
FROM alpine:3.14
# Set up GiteaPC
## Install GiteaPC dependencies
RUN apk add --no-cache gcc curl git python3 make pkgconf
## Needs to use bash and yes
RUN apk add --no-cache bash
## Install GiteaPC and accept the path added
RUN curl "https://gitea.planet-casio.com/Lephenixnoir/GiteaPC/raw/branch/master/install.sh" -o /tmp/giteapc-install.sh
RUN yes | bash /tmp/giteapc-install.sh
@jimbob88
jimbob88 / huffman.py
Created October 25, 2022 12:21
Huffman Coding in Python
"""
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
@jimbob88
jimbob88 / hosts.py
Created October 15, 2022 16:10
A fast hosts file generator (including compression support)
import itertools
import pathlib
import re
import sys
from collections import defaultdict
from typing import List
import requests
from tqdm import tqdm
@jimbob88
jimbob88 / main.py
Created September 3, 2022 16:56
Continuous Autocomplete in a textbox Qt
"""
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
@jimbob88
jimbob88 / main.py
Last active September 4, 2022 15:58
A scrollable tooltip in PyQt (PySide6)
import sys
from typing import cast
from lorem_text import lorem
from PySide6 import QtCore
from PySide6.QtCore import QSize, Qt, QPoint, QEvent, QPropertyAnimation, QEasingCurve, QObject
from PySide6.QtGui import QHelpEvent, QPalette, QKeyEvent, QMouseEvent, QScreen, QGuiApplication
from PySide6.QtWidgets import QApplication, QMainWindow, QPushButton, QScrollArea, QWidget, QVBoxLayout, QLabel, QGraphicsOpacityEffect, QToolTip, \
QFrame
@jimbob88
jimbob88 / main.py
Created August 20, 2022 16:26
wordproject.org Audiobook Downloader
import argparse
import urllib.parse
import zipfile
from pathlib import Path
import logging
import requests
from bs4 import BeautifulSoup
from clint.textui import progress