Skip to content

Instantly share code, notes, and snippets.

@mihanvr
mihanvr / UnityLoader_2021.3.32_original.js
Last active August 8, 2025 07:23
Support splitted wasm and data files in WebGL builds for Unity 2021.3.16f1
function createUnityInstance(canvas, config, onProgress) {
onProgress = onProgress || function () {};
#if USE_THREADS
// Polyfill Atomics.wake for old Emscripten fastcomp compiler.
// TODO: When we update to new Emscripten, this can be removed.
if (typeof Atomics !== 'undefined' && Atomics.notify && !Atomics.wake) {
Atomics.wake = Atomics.notify;
}
#endif
@amake
amake / innosetup-linux-macos.org
Last active October 30, 2025 07:16
Inno Setup on Linux and macOS

Inno Setup on Linux and macOS

Inno Setup is a popular installer builder for Windows. Of course it is made to run on Windows only, by default. But what if you want to build Windows installers off Windows, i.e. on Linux or macOS?

You’re in luck: It’s possible to run Inno Setup anywhere that Docker runs (including Linux and macOS), and even have a passable experience writing your setup script.

@JohannesMP
JohannesMP / LICENSE
Last active October 5, 2025 19:01
[Unity3D] A Reliable, user-friendly way to reference SceneAssets by script.
/*******************************************************************************
* Don't Be a Jerk: The Open Source Software License.
* Adapted from: https://github.com/evantahler/Dont-be-a-Jerk
*******************************************************************************
* _I_ am the software author - JohannesMP on Github.
* _You_ are the user of this software. You might be a _we_, and that's OK!
*
* This is free, open source software. I will never charge you to use,
* license, or obtain this software. Doing so would make me a jerk.
*