Skip to content

Instantly share code, notes, and snippets.

@20kdc
20kdc / AAA-Attention.md
Last active August 3, 2023 14:02
isle-tooling, gist edition

This release mechanism for isle-tooling is now deprecated.

I've decided to put little projects like these into a dedicated repository, https://gitlab.com/20kdc/scrapheap .

The benefits of this change include actually having released JARs, so it's really for the best.

@20kdc
20kdc / DMB.Bytecode.md
Last active September 19, 2022 06:01
Unofficial draft spec for BYOND DMB file format

THIS FILE MAY BE OUT OF DATE. CHECK README.

DMB Bytecode Format

Sorry, I don't actually have any documentation on this yet.

However, MCHSL & SpaceManiac's project, extools, is known to contain a disassembler for this.

Instance Initializer Procs

@20kdc
20kdc / example.groovy
Last active April 28, 2023 12:20
Making a common event using R48 internal stuff
import r48.io.IObjectBackend
import r48.io.data.IRIOFixnum
import r48.io.data.IRIO
import r48.io.r2k.dm2chk.DM2SparseArrayH
import r48.io.r2k.files.DatabaseIO
import r48.io.r2k.obj.ldb.CommonEvent
import r48.io.r2k.obj.ldb.Database
import java.io.FileOutputStream
IObjectBackend.Factory.encoding = "UTF-8"
init
while true
if audout does not contain buffer1
decode to buffer1, then schedule it
if audout does not contain buffer2
decode to buffer2, then schedule it.
wait for buffer finish. make sure timeout is a reasonable time for 3 buffers worth of audio to play in, just in case.
-- Modified from Ghabry's code
@20kdc
20kdc / init.lua
Last active December 12, 2016 21:31
File for testing
minetest.register_chatcommand("selfdestruct", {
privs = {
server = true,
},
func = function(name, param)
minetest.get_player_by_name(name):set_hp(0)
end
})
minetest.register_on_dieplayer(function (ply)
### Keybase proof
I hereby claim:
* I am 20kdc on github.
* I am 20kdc (https://keybase.io/20kdc) on keybase.
* I have a public key ASA_T-OCstN0i1s_ziKHekWpSFBJZGrEO0_jJDuydfveTAo
To claim this, I am signing this object: