Skip to content

Instantly share code, notes, and snippets.

View CodeZombie's full-sized avatar
🌵

Jeremy Clark CodeZombie

🌵
View GitHub Profile
@CodeZombie
CodeZombie / code.c
Last active January 24, 2026 06:10
esp_lcd ili9341 initialization
#include "esp_lcd_panel_io.h"
#include "esp_lcd_panel_vendor.h"
#include "esp_lcd_panel_ops.h"
#include "esp_lcd_ili9341.h"
#define SPI_HOST SPI2_HOST // FSPI on S2
esp_lcd_panel_handle_t panel_handle;
void initialize_ili9341() {
@CodeZombie
CodeZombie / instructions.md
Last active January 10, 2026 07:11
[Linux] ESP-IDF devcontainer setup.

Hello!

I'm going to walk you through setting up the ESP-IDF inside of VSCode with Devcontainers.

This worked for me with the immutable fedora-based distro Aurora, though the steps should be similar for any distro.

For non-immutable (mutable?) linux distros you don't have to install the base ESP-IDF in a devcontainer, though I would still recommend it.

Installing the prerequisites

  1. Install VSCode. In Aurora this is easy, just enable dev mode: ujust devmode.
@CodeZombie
CodeZombie / esp-idf-fix.md
Last active January 2, 2026 01:07
esp-idf in a Dev Container on Immutable Fedora

Steps to fix the "spawn udevadm ENOENT" error inside the ESP-IDF dev container.

  1. Launch the dev container in vscode and open a terminal.
  2. Open a terminal. Confirm that you're in the remote devcontainer terminal, and not on your host system.
  3. apt-get update
  4. apt-get install udev
  5. Now in your devcontainer.json file, add this to the end of the dict:
  "runArgs": [
    "--device=/dev/ttyACM0",
 "--privileged"
@CodeZombie
CodeZombie / plugin.cfg
Created November 1, 2025 22:24
PolyTools
[plugin]
name="PolyTools"
description="Adds tools to the inspector to make editing a Polygon2d a little easier."
author="CodeZombie"
version="1.0"
script="polytools_plugin.gd"
@CodeZombie
CodeZombie / delay.py
Last active October 28, 2025 02:25
ComfyUI Delay Node
import time
class DELAY:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
@CodeZombie
CodeZombie / pastetype.sh
Last active October 27, 2025 22:45
pastetype
#!/bin/bash
# 1. Start ydotoold in the background
# The '&' runs the command as a background job
ydotoold &
# 2. Save the Process ID (PID) of the background process
# '$!' is a special variable that holds the PID of the last backgrounded process
YDOTOOLD_PID=$!
@CodeZombie
CodeZombie / gegl.py
Created October 24, 2025 17:13
ComfyUI Gimp GEGL node
from PIL import Image
import torch
import numpy as np
import tempfile
import subprocess
import time
# NOTE: Ensure this is actually removing temp files.
# NOTE: Check to see if this works on linux.
@CodeZombie
CodeZombie / cutout_mask.py
Created October 24, 2025 17:08
ComfyUI "Cut Out Mask" node
from PIL import Image, ImageChops
import torch
import numpy as np
# TODO: Mask should be a MASK type, not IMAGE. Fix this.
# TODO: This doens't handle transparency nicely. If a mask has grey area, it will add darkness to the output transparent image. Fix that.
class CutMask:
def __init__(self):
pass
@CodeZombie
CodeZombie / search.py
Created October 23, 2025 05:10
gmc archive searcher
import os
import threading
import shutil
from collections import namedtuple
ThreadWithData = namedtuple('thread', 'thread, filecount')
# Constants
MAX_THREADS = 12
FILES_PER_THREAD = 500
@CodeZombie
CodeZombie / dialogue.tmLanguage.json
Created October 7, 2025 01:55
Godot Dialogue Manager VSCode Syntax Highlighting
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Dialogue",
"scopeName": "text.dialogue",
"patterns": [
{ "include": "#comment" },
{ "include": "#title" },
{ "include": "#import" },
{ "include": "#using" },
{ "include": "#conditional" },