Skip to content

Instantly share code, notes, and snippets.

@GlaceCoding
GlaceCoding / cg-fall-challenge-2023-pm.md
Created January 8, 2024 13:08 — forked from aangairbender/cg-fall-challenge-2023-pm.md
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
@GlaceCoding
GlaceCoding / 42Holygraph-improved.user.js
Last active July 15, 2022 14:40
Holygraph 42nice to codam
// ==UserScript==
// @name 42Holygraph-improved
// @namespace https://gist.github.com/GlaceCoding/915f1747c2a2da1f80bb5435477c3d28
// @version 0.3
// @description Blackholes days left
// @author GlaceCoding
// @match https://projects.intra.42.fr/projects/graph*
// @icon https://www.google.com/s2/favicons?domain=42.fr
// @downloadURL https://gist.github.com/GlaceCoding/915f1747c2a2da1f80bb5435477c3d28/raw/42Holygraph-improved.user.js
// @updateURL https://gist.github.com/GlaceCoding/915f1747c2a2da1f80bb5435477c3d28/raw/42Holygraph-improved.user.js
@GlaceCoding
GlaceCoding / 42bh-days-left.user.js
Last active May 11, 2022 20:18
View days left on intra
// ==UserScript==
// @name 42BH-days-left
// @namespace https://gist.github.com/GlaceCoding/6d189078c3c49fb0e6e69314601fbe4f
// @version 0.4
// @description Blackholes days left
// @author GlaceCoding
// @match https://profile.intra.42.fr/
// @match https://profile.intra.42.fr/users/*
// @icon https://www.google.com/s2/favicons?domain=42.fr
// @downloadURL https://gist.github.com/GlaceCoding/6d189078c3c49fb0e6e69314601fbe4f/raw/42bh-days-left.user.js
@GlaceCoding
GlaceCoding / .vimrc
Created March 15, 2022 09:52
config vimrc
set mouse=a
set number
set autoindent
syntax on
set title
set ruler
au WinLeave * set nocursorline
au WinEnter * set cursorline
set cursorline
set showmode
@GlaceCoding
GlaceCoding / 42project-to-favorite.user.js
Last active January 14, 2023 10:24
Userscript pour ajouter une catégorie favoris dans la sidebar des projets
// ==UserScript==
// @name 42project-to-favorite
// @namespace https://gist.github.com/GlaceCoding/c5d6d9b2f9f1784d198f79d15fc7d2cf
// @version 0.4
// @description Add favorites category for project
// @author GlaceCoding
// @match https://projects.intra.42.fr/*
// @icon https://www.google.com/s2/favicons?domain=42.fr
// @downloadURL https://gist.github.com/GlaceCoding/c5d6d9b2f9f1784d198f79d15fc7d2cf/raw/42project-to-favorite.user.js
// @updateURL https://gist.github.com/GlaceCoding/c5d6d9b2f9f1784d198f79d15fc7d2cf/raw/42project-to-favorite.user.js
@GlaceCoding
GlaceCoding / install_readline.sh
Last active February 16, 2023 17:59
Script installation readline
#bin/zsh
# fast `brew link readline`
LIB_FOLDER=vendor
mkdir $LIB_FOLDER
TEMP_FOLDER=$LIB_FOLDER/.tmp_readline-install/
READLINE_PATH=$LIB_FOLDER/readline/
@GlaceCoding
GlaceCoding / launch.json
Last active April 5, 2023 21:27
config VSCode / launch.json&tasks.json, you just need to change the line 13 and 14 of launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "C Launch",
"type": "cppdbg",
"request": "launch",
@GlaceCoding
GlaceCoding / 42cursus.user.js
Last active October 25, 2021 13:07
Select 42cursus
// ==UserScript==
// @name 42cursus
// @namespace https://gist.github.com/GlaceCoding/c70f68d4ecfa5877936d74eef13ebd49
// @version 0.2
// @description Select 42cursus
// @author GlaceCoding
// @match https://profile.intra.42.fr/
// @match https://profile.intra.42.fr/users/*
// @icon https://www.google.com/s2/favicons?domain=42.fr
// @downloadURL https://gist.github.com/GlaceCoding/c70f68d4ecfa5877936d74eef13ebd49/raw/42cursus.user.js
@GlaceCoding
GlaceCoding / c.sublime-project
Created October 10, 2021 19:20
Exemple d'options personnalisés pour un projet C de 42 avec ST3
{
"folders":
[
{
"path": "...\\exemple_rendu"
}
],
"settings":
{
"tab_size": 4,