Skip to content

Instantly share code, notes, and snippets.

View BigBang1112's full-sized avatar
🥵
NativeAOT

Petr Pivoňka BigBang1112

🥵
NativeAOT
View GitHub Profile
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active December 20, 2025 06:33
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@codecat
codecat / Webservices.md
Last active May 11, 2024 22:51
Trackmania Webservices

New documentation

Note: There is a newly maintained community documentation site for all of Trackmania's APIs!

Visit it at: https://webservices.openplanet.dev/

Authentication setup

This guide will explain how to authenticate with Nadeo's API. There are 2 methods of doing so, one is via a Ubisoft account, and one is via a dedicated server account. Note that the dedicated server account way is easier but imposes some limitations on what you can access with the API, but it could be enough.

Refer to my Nadeo Go package for a complete example.

@SONIC3D
SONIC3D / Push_MultiDimArray.c
Created April 10, 2014 14:26
Return a multidimensional table from C function to lua
/*
Return an array in this structure
http://stackoverflow.com/questions/20173954/how-to-return-a-multidimensional-table-from-c-function-to-lua
In Lua array values usually starts at 1.
{
[1] = { ["field1"] = "1", ["field2"] = "2" , ["field3"] = "3" },
[2] = { ["field1"] = "10" , ["field2"] = "20", ["field3"] = "30" }
}
*/