Skip to content

Instantly share code, notes, and snippets.

View jaymcgavren's full-sized avatar

Jay McGavren jaymcgavren

View GitHub Profile
@jaymcgavren
jaymcgavren / 4-nixie-2-k155ID1-up-down-asm.source.asm
Last active December 21, 2025 00:26
Linwood Whaley's assembly code for his Nixie tube clock in the HeatSync Labs front window (shared with permission)
; 4-nixie-2-K155ID1-up-down-asm-source
; this program will use a PIC16F887 microcontroller, two K155ID1
; driver chips and MPSA42/MPSA92 transistors to control four
; nixie tubes. MAXIM DS1302 RTC chip
; 20MHz resonator for 200nS instruction cycle
;
; pin 1 RE3: reset pin
; pins 2-5 RA0/3: outputs to anode control transistors
@jaymcgavren
jaymcgavren / .xscreensaver
Last active December 21, 2025 03:19
The .xscreensaver file from a Raspberry Pi OS installation.
# XScreenSaver Preferences File
# Written by xscreensaver-settings 6.09 for xscreensaver on Sat Nov 29 00:37:01 2025.
# https://www.jwz.org/xscreensaver/
timeout: 0:10:00
cycle: 0:10:00
lock: False
lockTimeout: 0:00:00
passwdTimeout: 0:00:30
visualID: default
@jaymcgavren
jaymcgavren / led-cube-4x4x4.ino
Last active December 20, 2025 21:16
Linwood Whaley's assembly code to run animations on his 4 x 4 x 4 LED cube
/*
led-cube-4x4x4-3
Arduino UNO or Nano
MCP23017 I/O expander controlled by I2C
MCP23017 address is 0x20
64 leds in a 4 by 4 by 4 by 4 arrangement
@jaymcgavren
jaymcgavren / ok_ddr.txt
Created September 16, 2025 21:17
A list of Dance Dance Revolution songs that, in my opinion, don't suck.
Dance Dance Revolution
Dance Dance Revolution/My Fire (UKS Remix)
Dance Dance Revolution/PARANOiA
Dance Dance Revolution/Have You Never Been Mellow
Dance Dance Revolution/KUNG FU FIGHTING
Dance Dance Revolution/TRIP MACHINE
Dance Dance Revolution/LET'S GET DOWN
Dance Dance Revolution/MAKE IT BETTER
Dance Dance Revolution EXTREME
Dance Dance Revolution EXTREME/WE WILL ROCK YOU
@jaymcgavren
jaymcgavren / amazon_music_favorites.csv
Created March 2, 2025 20:14
My Amazon Music playlists, exported July 15 2024 via tunemymusic.com
Track name Artist name Album Playlist name Type ISRC Amazon - id
Tongues [feat. KOPPS] Joywave How Do You Feel Now? Electronic Playlist USHR11435378 B00TBEXMVK
The Good In Me Jon Bellion The Human Condition [Explicit] Electronic Playlist USUM71603674 B01F9W9JEG
Smoking The Edge Dabrye One / Three Electronic Playlist US2J70400208 B00NYISAIO
Take Me Home Dabrye Instrmntl Electronic Playlist US2J71802409 B08X2W97KJ
Burn The House Down [Explicit] AJR The Click (Deluxe Edition) [Explicit] Electronic Playlist QMRSZ1801582 B07YNSH26S
One Big Moment Orbital Wonky Electronic Playlist GBQUK1200001 B07CZYW3Y8
Virga Tipper Flunked Electronic Playlist TCAER2060275 B085BFNZP9
Bilirubin Tipper Flunked Electronic Playlist TCAER2060274 B085BFTKB4
Flashlight Bonobo Flashlight EP Electronic Playlist GBCFB1403502 B073S67WQL
@jaymcgavren
jaymcgavren / mellow_d_best.txt
Created July 9, 2024 00:52
I downloaded all Mellow-D's mod tunes at https://modarchive.org/index.php?request=view_artist_modules&query=69557 and hastily went through them (discarding the cheesy/old sounding ones). Here's what made the cut.
1-fade.xm
2-higrou.xm
32coop.xm
4-bottle.xm
5-potion.xm
aalto.xm
chip1.xm
cloudcomplex_ds.xm
come_guilt.xm
cotton.xm
@jaymcgavren
jaymcgavren / messages.rb
Created February 5, 2024 06:31
A prototype for a MUD where a Door blocks attempts to pass through a Way.
class ListenerQueue
attr_reader :listeners
def initialize
@listeners = []
end
def register(listener)
@listeners << listener
end
def share_message(receiver, method_name, args, kwargs)
@listeners.each do |listener|
@jaymcgavren
jaymcgavren / module_prepend.rb
Last active February 5, 2024 05:03
A Ruby example of prepending a proxy module to a class to intercept method calls.
module MethodBroadcaster
def broadcast_calls_to(*method_names)
proxy = Module.new
method_names.each do |method_name|
proxy.define_method(method_name) do |*args, **kwargs, &block|
arg_strings = args.map(&:inspect)
kwarg_strings = kwargs.map{|k, v| "#{k}: #{v.inspect}" }
all_arg_strings = arg_strings + kwarg_strings
puts "#{method_name}(#{all_arg_strings.join(', ')})"
super(*args, **kwargs, &block)
@jaymcgavren
jaymcgavren / farming.rb
Last active January 23, 2024 06:54
Start of a prototype for a text adventure game.
# Untitled Text Adventure prototype.
# Copyright 2024 Jay McGavren. All rights reserved.
class Thing
attr_accessor :name
def initialize(name:)
@name = name
end
end
@jaymcgavren
jaymcgavren / bad_xscreensaver.txt
Created December 4, 2023 03:32
A list of XScreensaver modules that I deleted from MacOS because I don't find them tasteful.
Abstractile.saver
Anemone.saver
Anemotaxis.saver
AntInspect.saver
AntMaze.saver
AntSpotlight.saver
Apollonian.saver
Atlantis.saver
Attraction.saver
Beats.saver