Skip to content

Instantly share code, notes, and snippets.

@aangairbender
aangairbender / cg-fall-challenge-2023-pm.md
Last active June 4, 2024 09:26
CG Fall Challenge 2023 PM of aangairbender

aangairbender, Legend 11th!

Overview

Very important for me was having good toolkit for this contest:

  • code for state serialization (every turn I print base64 encoded state of the bot to stderr, so I can run my bot locally from any replay from any frame and debug the bot's behavior)
  • state visualizer (to debug fish tracking mostly)

Bot itself consists of 3 components:

  • fish tracking
@fnky
fnky / ANSI.md
Last active April 20, 2025 00:20
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");
@ericek111
ericek111 / xoverlay.cpp
Last active May 23, 2024 05:38
X11 overlay
/*
* Copyright (c) 2020 ericek111 <[email protected]>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU