Skip to content

Instantly share code, notes, and snippets.

View hyperdriveguy's full-sized avatar

Carson Bush hyperdriveguy

View GitHub Profile
@hyperdriveguy
hyperdriveguy / python-3-math-341.ipynb
Last active December 10, 2022 21:12
python-3-math-341.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hyperdriveguy
hyperdriveguy / assembler.py
Last active December 11, 2022 23:58
An assembler for my ECEN 240 final project
#!/usr/bin/python
import argparse
from os.path import isfile as filehere
REG_SIZE = 8
REG_ADDR_SIZE = 4
ROM_ADDR_SIZE = 8
MAX_ARGS = 3
OPCODE_SIZE = 3
# Note: some of these are macros that allow representing data differently or formatting arguments differently
@hyperdriveguy
hyperdriveguy / dice_roller.ino
Last active July 12, 2022 20:35
Arduino RNG interface for keypad and I2C LCD
// (c) Carson Bush 2022
// This program is free software: you can redistribute it and/or modify it under the terms
// of the GNU General Public License as published by the Free Software Foundation, either
// version 3 of the License, or (at your option) any later version.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program.
@hyperdriveguy
hyperdriveguy / adventure_game.py
Last active March 5, 2021 20:54
A text adventure with rpg elements I wrote for class in less than 2 weeks.
#!/usr/bin/env python
"""
Copyright (C) 2021 Hyperdriveguy
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@hyperdriveguy
hyperdriveguy / missionarybattle.asm
Created June 1, 2018 03:03
LDS Missionary Battle Theme (Called to Serve) for Pokemon Crystal
; Battle! Missionary (Called to Serve)
; No. 249 in the 1985 LDS Hymnbook
; Demixed by Hyperdriveguy
Music_MissionaryBattle:
musicheader 3, 1, Music_MissionaryBattle_Ch1
musicheader 1, 2, Music_MissionaryBattle_Ch2
musicheader 1, 3, Music_MissionaryBattle_Ch3
Music_MissionaryBattle_Ch1:
@hyperdriveguy
hyperdriveguy / bringhistruth.asm
Created May 18, 2018 00:23
We'll Bring the World His Truth for the Pokemon Crystal disassembly
; We'll Bring The World His Truth - LDS Children's Songbook
; Demixed by Hyperdriveguy
Music_BringHisTruth:
musicheader 4, 1, Music_BringHisTruth_Ch1
musicheader 1, 2, Music_BringHisTruth_Ch2
musicheader 1, 3, Music_BringHisTruth_Ch3
musicheader 1, 4, Music_BringHisTruth_Ch4
Music_BringHisTruth_Ch1:
@hyperdriveguy
hyperdriveguy / sevennationarmy.asm
Last active June 6, 2018 17:02
Seven Nation Army for the Pokemon Crystal Audio Engine
; White Stripes - Seven Nation Army
; Demixed by Hyperdriveguy
Music_SevenNationArmy:
musicheader 4, 1, Music_SevenNationArmy_Ch1
musicheader 1, 2, Music_SevenNationArmy_Ch2
musicheader 1, 3, Music_SevenNationArmy_Ch3
musicheader 1, 4, Music_SevenNationArmy_Ch4
Music_SevenNationArmy_Ch1:
@hyperdriveguy
hyperdriveguy / msh.sh
Last active July 6, 2017 06:38
Interactive wrapper for make
#!/bin/sh
function prompt {
printf "[make:"
printf $(pwd)
printf "]["
if [ $? == 0 ] ; then
printf ""
else
printf $?
fi
#!/usr/bin/python3
import os, random
# Init screen
print("*************************************")
print("* W W W IIIIIIIII NNNN NNN *")
print("* W W W W III NNN NNN NNN *")
print("* W W IIIIIIIII NNN NNNN *")
print("*************************************")
print("")
print("Licensed under the LGPL 2.1")