Skip to content

Instantly share code, notes, and snippets.

View fennecdjay's full-sized avatar
🎵
Star Gwion, You'll make my day

Jérémie Astor fennecdjay

🎵
Star Gwion, You'll make my day
  • France
View GitHub Profile
@fnky
fnky / ANSI.md
Last active July 12, 2025 11:39
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@daoleno
daoleno / reload-browser.sh
Created November 12, 2019 06:31
reload-browser - A cross-platform wrapper for reloading the current
#!/bin/sh
# reload-browser - A cross-platform wrapper for reloading the current
# browser tab
# Eric Radman, 2014
# http://eradman.com/entrproject/scripts/
usage() {
case `uname` in
Darwin)
# applescript needs the exact title
@harieamjari
harieamjari / kpa.c
Last active January 11, 2025 00:37
An implementation of Karplus-Strong Algorithm in C.
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
#define SECONDS 6 /* you can change this to suit for your preferences */
#define LENGTH 300 /* you can experiment with different string length */
char wav_struct[] = {
'R', 'I', 'F', 'F',
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active July 13, 2025 01:20
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
@jhburns
jhburns / razz_lang.hs
Last active April 29, 2024 18:48
Small RPN calculator
-- razz_lang
import Data.Function
import Data.Semigroup
import qualified Data.List as List
import qualified Data.Map as Map
import qualified Text.Read as Read
-- Stack types
@monomere
monomere / bitcode.h
Created January 30, 2025 23:32
speedrun vm (and compiled language)
// Copyright 2025 monomere
// MIT License
#ifndef SRVM_BITCODE_H_
#define SRVM_BITCODE_H_
#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
enum srvm_instr_op : uint8_t {