Skip to content

Instantly share code, notes, and snippets.

View jarobins's full-sized avatar

Jake Robinson jarobins

  • Georgia Tech Research Institute
  • Georgia
View GitHub Profile
# Chip 8 OpCode Reader
# Loads a chip 8 rom and reads the opcodes
# Displays a human readable discribtion of the opcode
rom = open("pong", "rb")
data = []
simple_codes = [1,2,3,4,5,6,7,9,10,11,12,13]
"""
Pygame base template for opening a window
"""
import pygame
# Define some colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
"""
Pygame base template for opening a window
"""
import pygame
from datetime import datetime
# Define some colors
BLACK = (0, 0, 0)
@jarobins
jarobins / tk_base.py
Last active August 9, 2018 18:57
Python TK Base
# File: tk_base.py
# Author: Jake Robinson
# Date: 09AUG2018
from Tkinter import *
import datetime
class App:
def __init__(self, master):
frame = Frame(master)
@jarobins
jarobins / tk_graphic.py
Created September 28, 2018 01:14
Simple graphical display using tkinter. Refresh rate is a bit slow.
# File: tk_graphic.py
# Author: Jake Robinson
# Date: 27SEP2018
from Tkinter import *
import datetime
import random
import time
@jarobins
jarobins / custom_dict.py
Created June 16, 2023 22:13
Custom Dictionary for Parameter Organization
# Custom Dictonary
import struct
class CustomDict(dict):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# Additional initialization code if needed
self.ss = None
self.bdata = None