Skip to content

Instantly share code, notes, and snippets.

View Offroaders123's full-sized avatar
〰️
SquiggleConf 2025!!!

Brandon Bennett Offroaders123

〰️
SquiggleConf 2025!!!
View GitHub Profile
@nommiin
nommiin / input.cpp
Last active March 8, 2026 11:58
A basic shim for adding keyboard support to Minecraft Console Edition
#include "stdafx.h"
#include <Windows64\4JLibs\inc\4J_Input.h>
#include <Common\App_enums.h>
#include <Windows.h>
C_4JInput InputManager;
void C_4JInput::Initialise(int iInputStateC, unsigned char ucMapC, unsigned char ucActionC, unsigned char ucMenuActionC)

Module Workers Polyfill npm version

This is a 1.1kb polyfill for Module Workers.

It adds support for new Worker('..',{type:'module'}) to all modern browsers (those that support fetch).

Usage

Copy module-workers-polyfill.js to your web directory, then load it using an import or a script tag. It just needs to be loaded before instantiating your Worker.