Skip to content

Instantly share code, notes, and snippets.

View doublej472's full-sized avatar

Jonathan Frederick doublej472

View GitHub Profile
@alichraghi
alichraghi / zig-shaders.md
Last active November 26, 2025 09:46
Zig Shaders

What does it look like?

Here is a simple fragment shader with uniform buffers:

const std = @import("std");
const gpu = std.gpu;

const UBO = extern struct {
    object_color: @Vector(4, f32),
    light_color: @Vector(4, f32),
@chainq
chainq / x68-mouse.ino
Last active October 16, 2025 00:41
X68000 to USB Mouse adapter
// Sharp X68000 to USB mouse port adapter
// by Chain-Q
//
// based on:
// Sharp X68000 to USB keyboard and mouse converter
// by Zuofu
//
// Supports true USB protocol (even through hub), so all types mice may be used.
//
// Provided free of charge and without warranty by Zuofu and Chain-Q, you may use
@aras-p
aras-p / preprocessor_fun.h
Last active December 5, 2025 05:33
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,