Skip to content

Instantly share code, notes, and snippets.

View lucaspcamargo's full-sized avatar

Lucas Pires Camargo lucaspcamargo

View GitHub Profile
@lucaspcamargo
lucaspcamargo / 0001-limit-colors-to-genesis-palette.patch
Created August 24, 2023 21:21
Crude patch for LibreSprite 6ffe8472194bf :: Only allow selecting Sega MegaDrive colors
From 158217365be2080e7d5f5de838bfae034f39c402 Mon Sep 17 00:00:00 2001
From: Lucas Pires Camargo <[email protected]>
Date: Thu, 24 Aug 2023 22:48:14 +0200
Subject: [PATCH] limit colors to genesis palette
---
src/app/color_utils.cpp | 21 +++++++++++++++++++++
src/app/color_utils.h | 4 ++++
src/app/commands/cmd_palette_editor.cpp | 10 ++++++----
src/app/ui/color_sliders.cpp | 3 ++-
#! /usr/bin/python3
"""
rainbow_vtrgb
animates vt colors like a rainbow
only useful with something else that updates the whole screen
(wondering if fbconsole has an ioctl or something like that to force the whole bitmap to update)
"""
import subprocess as sp
import time
@lucaspcamargo
lucaspcamargo / dweep_dump.py
Last active May 18, 2022 02:51
Dweep Gold data file dumper
# Dweep Gold data file dumper
# run this from program folder. it'll look for './Dweep.DAT'
# and dump what it can in ./out/
import os, sys
import struct
import PIL
from PIL import Image
destination = "./out/"
@lucaspcamargo
lucaspcamargo / camargo.zsh-theme
Last active February 25, 2022 20:17
lightly tweaked oh-my-zsh theme based off of steeef
# lightly tweaked oh-my-zsh theme based off of steeef
# now with random host text color depending on hostname
# ORIGNAL HEADER:
# prompt style and colors based on Steve Losh's Prose theme:
# https://github.com/sjl/oh-my-zsh/blob/master/themes/prose.zsh-theme
#
# vcs_info modifications from Bart Trojanowski's zsh prompt:
# http://www.jukie.net/bart/blog/pimping-out-zsh-prompt