Skip to content

Instantly share code, notes, and snippets.

@dim-pan
dim-pan / zero-lag-multiplayer-prompt.md
Last active November 22, 2026 20:10
A prompt for coding agents: add robust, near zero-lag online multiplayer to any real-time game

Prompt: add robust, near zero-lag multiplayer to any real-time game

Paste everything below the line into your coding agent at the root of your game's repo. It assumes nothing about your engine, language, hosting or backend.


Add live online multiplayer to this game: friends join a room by code or invite link and play together in real time with no felt lag.

Before writing code, read the game loop, the simulation/physics and the input handling. Then write a short plan that maps every section below onto this game and this stack: what the "player entity" is, which state goes on the wire, what a "round" is, which transport and hosting options this platform has. Ask me only about real design choices (room size, whether players can collide, what ends a round, where to host). Everything else below is decided: it is what held up after many iterations on a shipped real-time game with fast-moving players, and the "do not" items were tried and failed. It fits any game where each player controls their own charact

@michaelkamprath
michaelkamprath / feit-electric-dimmer-openbk7231t-conversion.md
Last active November 22, 2026 19:41
FEIT Electric Smart WiFi Dimmer Conversion to OpenBK7231T

Converting FEIT Electric Smart Wifi Dimmer to OpenBK7231T

The following steps shuld be taken to convert the FEIT Electic Smart WiFi Dimmer switch to be cloud-free using the OpenBK7231T software.

WARNING - Modifying electrical equipment that operates at mains power can be dangerous, even deadly, if you you make a mistake. Seek professional help with this conversion if you have any doubts (or should have doubts) in your ability to do it.

Reflashing Switch with OpenBK7231T Software

Note that this process requires you to have a UART capable of operating at 3.3 volts, some wires to connect the UART to the switch's circuit board, and a computer the UART can conncet to that has Python 3 installed.

Disassemble the switch, removing the circuit board form the switch unit. Be sure not to lose any of the screws or the platstic PCB cover you had to remove. Then, attach 4 wires tyoe the RX1, TX1, 3V3, and GND points on the circuit board. Also, connected a jumper from the `NRST

@majdijm
majdijm / README.md
Created November 22, 2026 19:19
H3 with Video reference from Blender

Blender previs → MiniMax H3 film (ComfyUI workflow)

A grey-box Blender video drives MiniMax H3 shot by shot. The previs goes on the video track of the Easy-Media multitrack editor, so each segment becomes reference-video-to-video: H3 gets its slice of the previs as <Video 1> (camera, cuts, timing, blocking) plus up to 9 reference pictures (character sheets, cars, one location plate).

File: h3_previs_to_film_workflow.json (drag it into ComfyUI). It has all 8 segment prompts.

Custom nodes

@jonnyjava
jonnyjava / working_effectively_with_legacy_code.md
Created November 4, 2019 21:51
Working effectively with legacy code summary

WORKING EFFECTIVELY WITH LEGACY CODE

To me, legacy code is simply code without tests. I’ve gotten some grief for this definition. What do tests have to do with whether code is bad? To me, the answer is straightforward, and it is a point that I elaborate throughout the book: Code without tests is bad code. It doesn’t matter how well written it is; it doesn’t matter how pretty or object-oriented or well-encapsulated it is. With tests, we can change the behavior of our code quickly and verifiably. Without them, we really don’t know if our code is getting better or worse.

Chapter 1 Changing Software

Four Reasons to Change Software: For simplicity’s sake, let’s look at four primary reasons to change software.

1. Find slapd
>> locate slapd
2. Find user activity in slapd.log
>> grep -i username101 slapd.log
3. Get the Root Credentials
date with links
2010-01-07 agda https://lists.chalmers.se/pipermail/agda/2010/001530.html
2017-03-10 idris https://github.com/idris-lang/Idris-dev/issues/3687
2019-02-09 idris https://github.com/idris-lang/Idris-dev/issues/4327
2019-02-26 idris https://github.com/idris-lang/Idris-dev/issues/4662
2019-09-09 metamath https://github.com/metamath/set.mm/pull/1089
2022-08-06 lean4 https://github.com/leanprover/lean4/issues/1433
2022-08-19 idris 2 https://github.com/idris-lang/Idris2/issues/2625
2023-08-01 metamath https://github.com/metamath/set.mm/pull/3334#issuecomment-1659955961 https://github.com/metamath/set.mm/pull/3339
2025-06-20 metamath https://proofassistants.stackexchange.com/q/5106 https://github.com/metamath/set.mm/issues/4904 https://github.com/metamath/set.mm/pull/4909
@HimDek
HimDek / Install Windows Subsystem for Android on any Edition of Windows 11 non Insider.md
Last active November 22, 2026 18:08
This Guide will show you how to Install Windows Subsystem for Android or WSA on any Edition of Windows 11 non Insider release.

Install Windows Subsystem for Android on Windows 11 non Insider

WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow this guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.

Prerequisites:

  • A Device with any version and Edition of Windows 11 installed.
  • Internet Connection.
  • Hyper-V enabled.

Enable Hyper-V:

@HimDek
HimDek / Install Android apps or apk files in Windows using Windows Subsystem for Android (No Emulator).md
Last active November 22, 2026 18:07
This Guide will show you how to install and run apk files or Android apps in any Edition of Windows 11 using Windows Subsystem for Android. WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator.

Install Android apps or apk files in Windows using Windows Subsystem for Android

WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow my guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.

Prerequisites:

  • Windows Subsystem for Android or WSA must be Installed.

Click here to view the guide that shows how to install Windows Subsystem for Android in any Edition of Windows 11 (including Windows 11 Home) non Inider or stable release.

How to Install Android Apps or apk files in Windows Subsystem for Android:

@poychang
poychang / Install Android apps or apk files in Windows using Windows Subsystem for Android (No Emulator).md This Guide will show you how to install and run apk files or Android apps in any Edition of Windows 11 using Windows Subsystem for Android. WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator.

Install Android apps or apk files in Windows using Windows Subsystem for Android

WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow my guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.

Prerequisites:

  • Windows Subsystem for Android or WSA must be Installed.

Click here to view the guide that shows how to install Windows Subsystem for Android in any Edition of Windows 11 (including Windows 11 Home) non Inider or stable release.

How to Install Android Apps or apk files in Windows Subsystem for Android: