Skip to content

Instantly share code, notes, and snippets.

@Ismael-VC
Ismael-VC / reflect.py
Created November 3, 2025 09:22
Ppthon Textual Reflector
#!/usr/bin/env python
import sys
from code import InteractiveConsole
from io import StringIO
from random import choice
from rich.syntax import Syntax
from textual.app import App, ComposeResult
from textual.containers import Container, Horizontal
@Ismael-VC
Ismael-VC / term.py
Created November 3, 2025 06:25
Reflector
#!/usr/bin/env python
import sys
from code import InteractiveConsole
from io import StringIO
from rich.syntax import Syntax
from textual.app import App, ComposeResult, RenderResult
from textual.containers import Container, Horizontal
from textual.widget import Widget
@Ismael-VC
Ismael-VC / unutal.yaml
Created July 17, 2025 00:13
Unutal Micro Syntax Highlighitng
# thanks to makeworld for new instructions and multiline comment support
filetype: uxntal
detect:
filename: "\\.(tal|utl|uxn|unu|unutal|uxntal)$"
rules:
# Uxntal
- identifier: "[@,;.&][^\ \n\r]+"
➜ ~ vncserver -localhost
Could not start Xvnc.
Xvnc TigerVNC 1.15.0 - built Mar 4 2025 13:49:08
Copyright (C) 1999-2025 TigerVNC team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101016
Built without GBM support
@Ismael-VC
Ismael-VC / vmpk-dvorak.xml
Created February 7, 2025 18:54
VMPK Dvorak layout 2025
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboardmap>
<keyboardmap version="1.0">
<mapping key="&lt;" note="17"/>
<mapping key="A" note="18"/>
<mapping key=";" note="19"/>
<mapping key="O" note="20"/>
<mapping key="Q" note="21"/>
<mapping key="E" note="22"/>
<mapping key="J" note="23"/>
ASTRA-256 Assembler > General Discussions > Topic Details
sovereign has ASTRA-256 Assembler 8 Feb, 2021 @ 12:09pm
Key table
Hi, folks.
ASTRA-256 is a cool piece of software. I'd like to see a reference table added to the manual that contains the individual keyboard key values for each color (off, green, red, yellow).
Below is a list I compiled (hex)
@Ismael-VC
Ismael-VC / vtermtest.cpp
Created October 10, 2024 04:21 — forked from shimarin/vtermtest.cpp
SDL2 terminal emulator using libvterm
// g++ -o vtermtest vtermtest.cpp -lvterm -lutil -lSDL2 -lSDL2_ttf -licuuc
#include <termios.h>
#include <pty.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <iostream>
#include <vector>
#include <vterm.h>
#include <SDL2/SDL.h>
@Ismael-VC
Ismael-VC / unrolled_uxn.c
Created September 27, 2024 02:22
Unrolled UXN core (`cpp -E src/uxn.c`).
# 0 "../tal/uxn11/src/uxn.c"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h"
1 3 4
# 0 "<command-line>"
2
# 1 "../tal/uxn11/src/uxn.c"
# 1 "../tal/uxn11/src/uxn.h"
1
@Ismael-VC
Ismael-VC / foo.bdf
Created September 16, 2024 18:11
example bdf char definition
STARTCHAR zero
ENCODING 48
SWIDTH 500 0
DWIDTH 8 0
BBX 7 10 0 0
BITMAP
38
6C
C6
C6
@Ismael-VC
Ismael-VC / any2bdf.py
Created September 16, 2024 18:01
Dirty little hack to convert fonts to Uxn's .uf2 font format.
#!/usr/bin/env python3
import fontforge
import os
import sys
import subprocess
def convert_to_bdf(directory):
print("Converting font files to BDF...")