Skip to content

Instantly share code, notes, and snippets.

@fnky
fnky / ANSI.md
Last active July 28, 2025 15:46
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active July 23, 2025 08:06 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
#!/usr/bin/env python3
RADIX = 10
# radix sort that works for non negative integers
def radix_sort_nonneg(lst):
last_iteration = False
radix_power = 1
while not last_iteration:
@brigand
brigand / AutoHotkeyTest.java
Created December 28, 2011 06:26
Using AutoHotkey in a Java program
// All depends can be found here: http://apps.aboutscript.com/jhk/JHK.zip
// Video: http://youtu.be/EX0iT0NTTjw
import com.eaio.nativecall.*;
public class AutoHotkeyTest {
private static IntCall exec;
public static void main(String[] args) {
System.out.println("Hello World");