This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "hexlib" | |
------------------------------------ | |
local Mushroom, Fireflower, Superstar, Goomba, KoopaTroopa | |
local enemies = { } | |
local def = { } | |
local ref = { } | |
local core = { } | |
local game = { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sprintf( ) | |
{ | |
let regex = /%([-0])?([0-9]+)?(\.[0-9]+)?([sdf%])/g; | |
let args = arguments; | |
let tmpl = args[ 0 ]; | |
let idx = 1; | |
return tmpl.replace( regex, function ( exp, p0, p1, p2, p3 ) | |
{ | |
if( exp == '%%' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function strftime( tmpl, timestamp ) | |
{ | |
let regex = /%([admbyYzZHMS])/g; | |
let date = new Date( ( timestamp + 60 * getTimezone( ) ) * 1000 ); | |
let utc_format = date.toUTCString( ); // Tue, 12 May 2020 23:50:21 GMT | |
let iso_format = date.toISOString( ); // 2020-05-12T23:50:21.817Z | |
return tmpl.replace( regex, function ( exp, type ) | |
{ | |
if( exp == '%%' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<audio crossorigin="anonymous" id="audio_source" controls preload="none" style="width:16em;padding:0;"> | |
<source src="http://www.example.com:8000/sample?type=http&nocache=4" type='audio/mpeg'> | |
</audio> | |
<script> | |
const AudioContext = window.AudioContext || window.webkitAudioContext; | |
const audio = document.querySelector( "audio" ); | |
var convolverBuffer; | |
var convolverNode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------- | |
-- Minetest :: Auth Redux Mod v2.1 (auth_rx) | |
-- | |
-- See README.txt for licensing and release notes. | |
-- Copyright (c) 2017-2018, Leslie E. Krause | |
-- | |
-- ./games/minetest_game/mods/auth_rx/filter.lua | |
-------------------------------------------------------- | |
FILTER_TYPE_STRING = 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------- | |
-- Minetest :: Auth Redux Mod v2.1 (auth_rx) | |
-- | |
-- See README.txt for licensing and release notes. | |
-- Copyright (c) 2017-2018, Leslie E. Krause | |
-- | |
-- ./games/just_test_tribute/mods/auth_rx/init.lua | |
-------------------------------------------------------- | |
---------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have been contributing code to Minetest for months, not just sitting on code. |