Skip to content

Instantly share code, notes, and snippets.

View eli-oat's full-sized avatar

Eli Mellen eli-oat

View GitHub Profile
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
@eli-oat
eli-oat / styles.css
Created January 16, 2023 02:58
an abandoned stylesheet
*:focus {
outline: 4px solid #FFD700;
outline-offset: 4px;
}
html {
font-size: 118%;
}
body {
@eli-oat
eli-oat / wiki.sh
Created January 8, 2023 01:19
a very simple script to build a static wiki out of a directory of markdown files
#!/usr/bin/env bash
# requires pandoc
# coreutils
# uuidgen
set -o errexit
set -o nounset
set -o pipefail
if [[ "${TRACE-0}" == "1" ]]; then
@eli-oat
eli-oat / pokedex.rkt
Created December 29, 2022 01:31
boring basic pokedex playground
#lang racket
;; let's try to make a pokedex in racket!
(require net/url
net/url-connect
json
slideshow/pict
racket/draw)
@eli-oat
eli-oat / pomo.forth
Last active October 7, 2022 17:22
Pomodoro Timer in Forth
( POMO POMO POMO )
VARIABLE POMO-TIME
1500000 POMO-TIME !
VARIABLE REST-TIME
600000 REST-TIME !
( TODO: Consider using VALUE instead of VARIABLE )
@eli-oat
eli-oat / see.md
Created June 26, 2021 17:20 — forked from RickCarlino/see.md
Retroforth SEE implementation (sort of)

dump - A simple way to peek memory addresses.

Provides a word called dump.

Output looks like this:

> [ 'Hello,_world! s:put nl ] dump
3B9F: 0x801
3BA0: 0xE5D

3BA1: H

@eli-oat
eli-oat / game-loop.retro.md
Created June 5, 2021 01:54
A minimal example game loop implemented in RetroForth

Game loop!

Description of goals

This is a derivative work based on suggestion from @crc -- http://forth.works/share/6e7967060cc12336fb4cd7cd0474fed1

My goal here is to make a basic text-based game loop that can serve as a starting point for a full game.

To accomplish this I'll implement a few core features:

@eli-oat
eli-oat / dice.ts
Last active March 16, 2021 02:01
A dice rolling class
interface Dice {
numberOfDice: number;
sidesOfDice: number;
diceModifier: number;
}
interface LogEntry {
timestamp: string;
input: string;
result: number;
@eli-oat
eli-oat / test.md
Created January 3, 2021 21:03 — forked from ityonemo/test.md
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@eli-oat
eli-oat / lbForth.c
Created September 7, 2020 23:17 — forked from lbruder/lbForth.c
A minimal Forth compiler in ANSI C
/*******************************************************************************
*
* A minimal Forth compiler in C
* By Leif Bruder <[email protected]> http://defineanswer42.wordpress.com
* Release 2014-04-04
*
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial
*
* PUBLIC DOMAIN
*