Skip to content

Instantly share code, notes, and snippets.

View longjoel's full-sized avatar
😀
Still working on it!

Joel Longanecker longjoel

😀
Still working on it!
View GitHub Profile
@longjoel
longjoel / gist:136db4cc8105f1cb16ec3011c071659a
Created September 25, 2026 21:53
Virtual On 2 player in mame
--- a/src/mame/sega/segabill.cpp
+++ b/src/mame/sega/segabill.cpp
@@ -135,4 +135,3 @@
ROM_START( billboard )
ROM_REGION(0x10000, "billcpu", 0)
- ROM_LOAD("epr-18022.ic2", 0x00000, 0x10000, CRC(0ca70f80) SHA1(edf5ade72d9fa2f4d5f83f9f89e6cecfadd77f56))
ROM_END
----
#!/usr/bin/env bash
data:
a tile map is an 8x8 grid represented by the following characters
let tileChars = {
' ':'empty',
'T':'tall tree',
't':'short tree',
'X':'large boulder',
'x':'small boulder',
'W':'deep water',
# Compiler
CC = psp-g++
CXX = psp-g++
AS = psp-g++
LD = psp-g++
AR = psp-gcc-ar
RANLIB = psp-gcc-ranlib
STRIP = psp-strip
MKSFO = mksfoex
(()=>{
const mkFramebuffer = (width, height, start)=>{
return {
width:width,
height:height,
start:start,
pixels:new Array(width*height)};
};
const drawLine = (x0,y0,x1,y1,colorIndex,fb) =>{
/*
hxRender 3.0
hxRender.cpp
Joel Longanecker
2006
*/
/*
** License
#!/usr/bin/env python3.5
import glob
import os
import subprocess
from shutil import copyfile
import shutil
import sys
# Build code
#!/usr/bin/python3.5
"""
Joel's super simple stupid python make tool.
It grabs all your c files and smushes them together.
It's not very efficient, but it gets the job done.
"""
import subprocess
import glob
import os
#!/usr/bin/python
import subprocess
import os
import sys
#
#variables
#
psxRipDir = "/media/longjoel/New Volume/PS1/"
public static class TextGenerator
{
static SizeF MeasureString (string s, Font font)
{
SizeF result;
using (var image = new Bitmap (1, 1)) {
using (var g = Graphics.FromImage (image)) {
g.PageUnit = GraphicsUnit.Pixel;
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;