This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "json" | |
| require "logger" | |
| REQUEST_TABLE = {} | |
| NOTIFICATION_TABLE = {} | |
| LOGGER = Logger.new(File.join(__dir__, "debug.log")) | |
| def log(msg) LOGGER.info(msg) end | |
| def read_header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Context do | |
| defstruct noise_timer: nil, | |
| period: nil, | |
| shift_register: <<0b000_0000_0000_0001::size(15)>> | |
| end | |
| defmodule NesNoise do | |
| import Bitwise | |
| defp master_clock_hz, do: 236_250_000.0 / 11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "base64" | |
| require "json" | |
| require "bundler/inline" | |
| gemfile do | |
| source "https://rubygems.org" | |
| gem "chunky_png", "1.4.0" | |
| end | |
| KEYWORD_EMBEDDED_SOURCE = "Embedded Source" |
OlderNewer