Skip to content

Instantly share code, notes, and snippets.

@dgant
dgant / StarCraft Tournament Proposal.md
Created January 18, 2026 17:19
COG & AIIDE StarCraft Tournament Proposal

I'd like to propose rulesets for the COG and AIIDE StarCraft AI tournaments, in service of these goals:

  • Differentiate the two tournaments
  • Improve bots towards beating top human players
  • Produce legible artifacts for communicating our efforts
  • Involve more and new participants

This proposal assumes the existing AIIDE tournament process and rules as the starting point.

Differentiate the two tournaments

@HimDek
HimDek / Install Windows Subsystem for Android on any Edition of Windows 11 non Insider.md
Last active March 9, 2026 05:34
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:

@rdb
rdb / optimizer.py
Created December 11, 2022 16:58
Collision scene optimizer for Panda3D
from panda3d.core import *
from array import array
def optimize_collisions(np, *, convert_geometry=False, ignore_z=False, preserve_name=True, preserve_tags=True, track_progress=None):
"""Organizes all "into" collision nodes below this level into an octree or
quadtree (actually an AABB tree, but never mind that) for greatly speeding
up collisions.
If convert_geometry is True, also converts all GeomNodes (unless you set
@superjamie
superjamie / 2022-11-06-sdl-fullscreen-scaling.md
Last active March 9, 2026 05:29
How to do SDL 2D Fullscreen and Scaling
@superjamie
superjamie / 8BitDoUltimate2Wireless.md
Created July 24, 2025 10:49 — forked from barraIhsan/8BitDoUltimate2Wireless.md
8BitDo Ultimate 2 Wireless on GNU/Linux, SteamOS, and Windows

Most of the source comes from: Steam Beta Forum

Thank you so much to everyone in the forum for contributing, for reaching out to 8BitDo to request switching between XInput/DInput/Switch mode on the dongle, to Valve for adding support on DInput mode, to the SDL developers (and 8bitdo) for adding support on DInput mode, and finally, to the Linux kernel developers for adding support on XInput mode.

This gist summarizes everything from that forum.

Switching Mode

So after the latest firmware update (as the time of writing: Controller 1.06, Adapter 1.04), its now possible to switch to DInput and Switch mode by holding B (DInput) or Y (Switch) while turning on t

@lukeswitz
lukeswitz / PiDriver.md
Last active March 9, 2026 05:27
Pi Wardriver Configuration
@shawnyeager
shawnyeager / opencode-systemd-tailscale.md
Last active March 9, 2026 05:27
Run OpenCode as a persistent systemd service with Tailscale access

OpenCode Web Server Setup

Run OpenCode as a persistent background service, accessible from any device via Tailscale.

Why?

  • Access from anywhere — Start a task from your phone, check results from your laptop
  • Sessions persist — Close the browser, come back later, your session is still there
  • Multiple clients — Terminal TUI and browser can connect to the same session simultaneously
  • Survives crashes — systemd restarts the server automatically
{
"version": "0.1.0",
"name": "pump",
"instructions": [
{
"name": "initialize",
"docs": [
"Creates the global state."
],
"accounts": [
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
;; ━━━━━━━━━━━━━━━━━━
;; 作者: 李继刚
;; 剑名: 商业结构
;; 剑意: 看懂「公司」的结构形状
;; 日期: 2026-01-21
;; ━━━━━━━━━━━━━━━━━━
** 【角色设定】
你是一位系统战略分析师。你擅长透过表象(财报、新闻),洞察一个商业组织底层的能量运作逻辑。你认为万物皆为“结构”,而结构是在压力下由向心力与离心力动态平衡形成的“涡漩体”。