Skip to content

Instantly share code, notes, and snippets.

@SimonEast
SimonEast / .8XP Binary File Format.md
Last active September 30, 2025 13:56
8XP Binary File Format & Structure Documentation

8XP File Format

The following KSY file shows the binary structure of 8XP files. These files are programs used on Texas TI-83 Plus and TI-84 Plus calculators.

As a basic summary, each 8XP file contains:

  • 55 byte header
  • 19 byte meta data section
  • body (variable length)
  • 2 byte checksum at the end
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active September 30, 2025 23:23
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
@lucypero
lucypero / menu-emoji.sh
Created March 1, 2021 06:23
Emoji Picker
#!/bin/sh
#Emoji picker using rofi. Copies selected emoji to clipboard, and it pastes it.
#Deps: rofi, xdotool, xclip
set -e
case "$1" in
"list")
@ivanbrennan
ivanbrennan / premium-xcursor-theme.nix
Created February 13, 2021 21:43 — forked from ottidmes/premium-xcursor-theme.nix
Custom X cursor in NixOS
{ stdenv, lib, fetchurl, variants ? [ "Premium" "Premium-left" ] }:
with lib;
stdenv.mkDerivation rec {
name = "${package-name}-${version}";
package-name = "premium-xcursor-theme";
version = "0.3";
src = fetchurl {
@joelotz
joelotz / cue2labels.py
Last active September 6, 2025 04:28
Convert a music .cue file into a label file. This module will accept an optional string attribute that specifies the input .cue file. If this file is not provided in the call then file-select box will be presented to the user. Output is a .txt file of labels that can be input into Audacity.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Convert a music .cue file into a label file.
This module will accept an optional string attribute that specifies the input
.cue file. If this file is not provided in the call then file-select box will
be presented to the user. Output is a .txt file of labels that can be input
into Audacity.
Examples:
@Athari
Athari / ReadMe.md
Last active December 2, 2024 03:26
[User Style] e621.net — Tricksta Esix

[![Screenshot]][Screenshot]

[![Install directly with Stylus][Shield Stylus]][CSS]

Features

  1. Tricksta's Esix on the front page of e621.net as a mascot.
  2. Restyled controls on the front page to match the image.
  3. Small Esix at the bottom of each page.
@vivkin
vivkin / 16-color-table.sh
Created May 26, 2017 07:11
Terminal color test scripts
#!/bin/bash
#
# This file echoes a bunch of color codes to the terminal to demonstrate
# what's available. Each line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a test use of that color
# on all nine background colors (default + 8 escapes).
#
T='gYw' # The test text
echo -e "\n 40m 41m 42m 43m 44m 45m 46m 47m";
for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' ' 36m' '1;36m' ' 37m' '1;37m';
@d4rkr00t
d4rkr00t / aik-talk.md
Last active January 5, 2023 18:18
Aik Talk

Introduction

Hi, my name is Stan. And I moved here with my family just about 2 months ago from Russia.

And I'm very nervous now. Because it's my first talk in English. I hope it goes well. But. Anyway. Let's start.

When I started getting into web development a while ago, I was doing mostly PHP. And do you know what I loved the most about PHP? It's how easy it was to start actually doing something.

MAMP

@bobzhang
bobzhang / Comparison of different langauges
Last active January 5, 2023 18:17
Type safe Alt-JS language comparison
A list of languages which compile to JS (Elm, Purescript, OCaml)
(Inspired by this thread: https://groups.google.com/forum/#!topic/elm-discuss/Um7WIBTq9xU)
They all support curry calling convention by default.
Some interesting results:
1. `min` is curried function, only OCaml(BuckleScript) managed to optimize this overhead.
2. All optimize the self tail call
3. Only BuckleScript and PureScript type-specialized comparison functoin (>=) and inlined
@eevee
eevee / perlin.py
Last active May 29, 2025 13:08
Perlin noise in Python
"""Perlin noise implementation."""
# Licensed under ISC
from itertools import product
import math
import random
def smoothstep(t):
"""Smooth curve with a zero derivative at 0 and 1, making it useful for
interpolating.