Skip to content

Instantly share code, notes, and snippets.

View cbpudding's full-sized avatar

Alexander Hill cbpudding

  • Maine
View GitHub Profile
@cbpudding
cbpudding / Main.elm
Last active December 20, 2024 22:25
The code I rewrite all the time to make a single page web application in Elm
module Main exposing (..)
import Browser exposing (Document, UrlRequest)
import Browser.Navigation exposing (Key)
import Url exposing (Url)
type alias Flags = ()
type alias Model = ()
type alias Msg = ()
@cbpudding
cbpudding / bf.s
Last active October 20, 2020 22:50
A small brainf*** interpreter written in MIPS Assembly
.data
buffer: .space 65536
memory: .space 256
.text
main:
la $a0, buffer # Get the source code to execute
li $a1, 65536
li $v0, 8
syscall
la $a0, memory # Initialize memory