Skip to content

Instantly share code, notes, and snippets.

View tukib's full-sized avatar

Bryn Ward-Leikis tukib

View GitHub Profile
@tukib
tukib / cs110-textbook-asm.js
Last active November 17, 2021 20:19
Textbook Assembly Language Compiler+VM (with README)
// registers
class REG_INSTANCE {
#REGISTERS;
constructor() {
this.HALTED = 0;
this.GT = 0;
this.EQ = 0;
this.LT = 0;
this.#REGISTERS = new Int16Array(8);
}

Keybase proof

I hereby claim:

  • I am tukib on github.
  • I am tukib (https://keybase.io/tukib) on keybase.
  • I have a public key ASBDVf973jUZCP_QR_JqNqtS6RgVFpNttYuqHgKj_8la1Ao

To claim this, I am signing this object:

@tukib
tukib / index.js
Last active October 13, 2019 00:25
Hackmud Chat API for Node.js
"use strict"
const request = require("request")
const API = {
domain_root: "www.hackmud.com",
__promise_wrap: (endpoint, dat) => {
return new Promise((resolve, reject) => {
request({
method: "POST",