Skip to content

Instantly share code, notes, and snippets.

@fnky
fnky / ANSI.md
Last active July 8, 2024 11:54
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
$gtk.reset seed: Time.now.to_i
#puts "++++++++++++++++++ RESET +++++++++++++++++++++"
=begin
Creates a few different effects using particles
explode: fly apart dramatically and burn with flaming colours
melt: fall apart in a downward direction while turning toxic green
disintegrate: break apart less dramatically without burning colours
@sandyjmacdonald
sandyjmacdonald / code.py
Last active May 26, 2023 12:46
MIDI CC knob controller example for Raspberry Pi Pico
import time
import board
import usb_midi
import adafruit_midi
from analogio import AnalogIn
from adafruit_midi.control_change import ControlChange
# MIDI CC knob controller example for Raspberry Pi Pico
@mattiasgustavsson
mattiasgustavsson / main.c
Created March 5, 2024 19:18
Minimal code example for creating a window to plot pixels to
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <windows.h>
#pragma comment( lib, "user32.lib" )
#pragma comment( lib, "gdi32.lib" )
#define SCRW 640
#define SCRH 480