In the interest of transparency and/or being vaguely useful, I'm releasing my random junk publicly. Mirror of github copy.
Go to file
osmarks 78602eabd6 reorganize LAN chat stuff 2021-06-14 22:27:54 +01:00
KerbalName add more things??? 2020-08-12 20:31:12 +01:00
accursed-autoregex add more things??? 2020-08-12 20:31:12 +01:00
binary-html upload failed binary HTML thing 2020-08-31 21:36:44 +01:00
calibre-indexer New things, documentation 2021-04-08 16:28:33 +01:00
code-guessing base32 thing, weird image esolang 2021-04-26 17:59:23 +01:00
esolangs-interpreter-race initial commit v2 2020-08-12 19:16:20 +01:00
fractalart-rs short width/height options in fractalart-rs somehow got swapped, fix it 2021-05-29 21:33:56 +01:00
it-was-inevitable add more things??? 2020-08-12 20:31:12 +01:00
iterated-prisoners-dilemma-contest reorganize, upload some things 2021-03-21 19:36:03 +00:00
lan-chat reorganize LAN chat stuff 2021-06-14 22:27:54 +01:00
.gitignore New things, documentation 2021-04-08 16:28:33 +01:00
99-bottles.sql publish things 2021-01-29 16:34:10 +00:00
CookieEnterKeyPresser.py add more things??? 2020-08-12 20:31:12 +01:00
LICENSE Create LICENSE 2020-08-12 19:24:42 +01:00
README.md New things, documentation 2021-04-08 16:28:33 +01:00
Stackulator.fs add more things??? 2020-08-12 20:31:12 +01:00
beep.py initial commit v2 2020-08-12 19:16:20 +01:00
collatzz3.py reorganize, upload some things 2021-03-21 19:36:03 +00:00
config.ts add more things??? 2020-08-12 20:31:12 +01:00
db.ts add more things??? 2020-08-12 20:31:12 +01:00
diacriticize.py add more things??? 2020-08-12 20:31:12 +01:00
discord-message-dump-thing.py Upload Discord dump processor script 2021-03-03 12:00:26 +00:00
emoji_ternarize.py initial commit v2 2020-08-12 19:16:20 +01:00
eso-interpreter.py initial commit v2 2020-08-12 19:16:20 +01:00
fractalart.html fractalart things 2021-04-10 19:31:25 +01:00
generate-tape-image-1.py initial commit v2 2020-08-12 19:16:20 +01:00
generate-tape-image.py initial commit v2 2020-08-12 19:16:20 +01:00
green.png ptt.py 2021-01-13 13:09:09 +00:00
heavdrone.py heavdrone 2021-02-03 23:13:05 +00:00
heavpoots-game.html initial commit v2 2020-08-12 19:16:20 +01:00
hello.s initial commit v2 2020-08-12 19:16:20 +01:00
image-ec.py base32 thing, weird image esolang 2021-04-26 17:59:23 +01:00
image-eso.py base32 thing, weird image esolang 2021-04-26 17:59:23 +01:00
length_terminated_strings.c release length terminated strings upon an unsuspecting world 2021-03-20 22:50:28 +00:00
log.ts add more things??? 2020-08-12 20:31:12 +01:00
luamin-api.js add more things??? 2020-08-12 20:31:12 +01:00
mandelbrot.c change break condition 2021-04-30 19:45:26 +01:00
mandelbrot.py Mandelbrot implementations for some reason 2021-04-30 19:39:23 +01:00
naming.elm add more things??? 2020-08-12 20:31:12 +01:00
polcomp-visualizer.html initial commit v2 2020-08-12 19:16:20 +01:00
ptt.py ptt.py 2021-01-13 13:09:09 +00:00
realtau.txt add more things??? 2020-08-12 20:31:12 +01:00
red.png ptt.py 2021-01-13 13:09:09 +00:00
sierpinski-index.py weird space-filling curve thing 2021-05-29 21:14:17 +01:00
snake.s Snake game for "AQA assembly language" 2021-04-30 19:42:20 +01:00
spudnet-http.py fractalart things 2021-04-10 19:31:25 +01:00
stb_image_write.h Mandelbrot implementations for some reason 2021-04-30 19:39:23 +01:00
thesaurwhy.py add more things??? 2020-08-12 20:31:12 +01:00
tiscubed.py "TISCubed" thingy 2021-03-21 19:59:58 +00:00
unhex.py add more things??? 2020-08-12 20:31:12 +01:00
whyjit.py initial commit v2 2020-08-12 19:16:20 +01:00
wpdumpidx.rs add more things??? 2020-08-12 20:31:12 +01:00
wssh.py add more things??? 2020-08-12 20:31:12 +01:00

README.md

random-stuff

In the interest of transparency and/or being vaguely useful, I'm releasing many random and/or deterministic small things accumulated from various projects folders over the years. This comes with absolutely no guarantee of support or correct function, although if you need some of this for something I will try and answer any queries you might have.

Contents (incomplete and rough list)

  • some interpreters for various esolangs, written for competitions on an esolangs Discord server
  • trivial x86-64 assembly hello world for some reason
  • political compass visualizer thing for one Discord server
  • simple un-hexadecimal-izer program (base64 -d exists but somehow not base16 -d or some equivalent)
  • generate-tape-image.py - scripts for packing music + metadata onto Computronics (a Minecraft mod) tape images - these require LionRay to do the DFPWM conversion as of now. Can be played with something like this.
  • a thing to generate WAV files containing beeping noises
  • fairly transferable small bits of an abandoned JS project
  • an extremely bad cookie clicker-style incremental thing where you press the enter key instead of clicking
  • a very simple web API wrapper for luamin
  • a tweaked old version of it-was-inevitable which runs a local webserver instead of sending to Mastodon. Used to be used by PotatOS but this was discontinued due to RAM use.
  • an extremely accursed program which bruteforces regexes or something? Not that this actually does anything beyond using vast amounts of CPU and printing things.
  • realtau.txt, which seemingly contains 100000 digits of τ. I wonder if there's a faketau somewhere.
  • a strange thing which lets you use synonyms to get attributes on python objects
  • code for generating random vaguely human readable names in Elm. Please note that I do NOT endorse the use of Elm and this is provided mostly just to make the languages list at the side weirder rather than for any actual uses.
  • F# kerbal name generator & very basic stack calculator
  • Wikipedia dump index indexer (I think some of this is just example code for an oddly specific crate which parses the dump XML)
  • ptt.py - Python-based systemwide push to talk (mutes and unmutes microphone via PulseAudio) with tray icon
  • code-guessing - contains my entries, some test code, and build processes for my submissions to the Esolangs code guessing competition. There are also some things which never made it into an entry, such as my abuse of Z3 to solve mazes (it's surprisingly effective).
    • list-sort.py, which sorts lists of integers by interpreting a simple Lispy language and doing a continuation-passing-style quicksort (to avoid stack issues; it supports tail call optimization so this is "efficient").
    • maze2.py, which does simple depth first search to solve a maze in a pleasantly compact format.
    • multiply_matrices.py, which abuses many Python features and does matrix multiplication in an inefficient recursive way which looks like Strassen's algorithm but isn't.
    • anagram.c, which detects whether strings are (case-insensitively, and ignoring spaces) anagrams by uppercasing them, sorting them, and removing spaces and comparing them for equality. It does this by dividing the string into 16-byte chunks which can fit into a 128-bit xmm register (this had to run on Sandy Bridge systems, which lack AVX2), uppercasing them using three vector instructions (via the invariant that the input won't contain anything but [A-Za-z ]), applying a SIMD-based bubblesort to each chunk which swaps all the necessary pairs at once until it stops changing, and then using a 32-way (sequential; no idea how to parallelize this) merge to output a sorted string and discard spaces. These can then be checked for equality.
  • mcc.py - a chat program. Unlike most chat programs, it runs over IPv6 multicast so you can talk to anyone on your LAN who also happens to have this program somehow. Very flaky, due to trying to autoguess a network interface to use and also limited testing, as well as quite barebones.
  • tiscubed.py - an esolang somewhat like TIS-100, but with a somewhat exotic (almost no immediate operands, no registers, only 256B of memory per node) binary machine code format instead of assembly (there is an assembler available too). It's called "cubed" due to three dimensions, but I haven't actually done this yet.
  • iterated-prisoners-dilemma - some scripts from an iterated prisoners' dilemma competition. Unfortunately, nobody came up with any particularly exciting algorithms for this.
  • calibre-indexer - full text search for Calibre libraries, via SQLite.
    • SQLite may not have been a great choice for this, as it cannot do concurrent writes. Nevertheless, the code works, if not particularly efficiently, and allows you to build a full text table (using FTS5) to rapidly search in your Calibre library.
    • While searches are near-instant, building the index is very slow (several deciseconds per book) and it takes up large amounts of disk space (though less than the original books, funnily, because those contain images). It's smart enough to not operate again on books it already has which haven't been changed, though.
    • It only works on EPUBs, because I couldn't be bothered to support other formats (calibre can convert them anyway).
    • Text (and chapter titles, ish) is extracted using a simple but seemingly fairly reliable state machine and xml-rs.
    • I have not gotten round to releasing a nice-to-use frontend for this. You can use run-query.py for a less nice one.
  • length_terminated_strings.c - a revolution in computer science, combining the efficient strlen of null-terminated strings with the... inclusion of length? of length-prefixed/fat-pointer strings. A length-terminated string has its length at the end, occupying 1 to 8 bytes. To find its length, simply traverse the string until the data at the end matches the length traversed so far. Yes, this implementation might slightly have a bit of undefined behaviour.
  • discord-message-dump.py, which reads a GDPR data dump from Discord and copies all the messages in public channels to a CSV file. I used this for training of a GPT-2 instance on my messages (available on request).
  • spudnet-http.py - connect to the SPUDNET backend underlying PotatOS's backdoors remote debugging system via the convenient new HTTP long-polling-based API.
  • fractalart-rs - this in Rust and faster, see its own README for more details.