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.
| # This is free and unencumbered software released into the public domain. | |
| # | |
| # Anyone is free to copy, modify, publish, use, compile, sell, or | |
| # distribute this software, either in source code form or as a compiled | |
| # binary, for any purpose, commercial or non-commercial, and by any | |
| # means. | |
| # | |
| # In jurisdictions that recognize copyright laws, the author or authors | |
| # of this software dedicate any and all copyright interest in the | |
| # software to the public domain. We make this dedication for the benefit |
| Oh golly, it sure would be bad if this text was visible! |
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.
| 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 |
| 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: |