Skip to content

Instantly share code, notes, and snippets.

@zvodd
zvodd / EditSave.gd
Created February 5, 2026 01:16
Godot 3 Resource file Save Editor UI
extends Panel
# Path updated: Now points through the ScrollContainer
onready var edit_area : VBoxContainer = $"HBoxContainer/ScrollContainer/EditArea"
onready var edlo = EditSaveResMarshal.new()
func _ready():
# Ensure the EditArea stretches to fill the width of the ScrollContainer
edit_area.size_flags_horizontal = SIZE_EXPAND_FILL
populate_editor(edlo.save_dict)
@zvodd
zvodd / freefly_godot3.gd
Created February 3, 2026 04:17
Simple FryFlee Cam for Godot 3
extends Camera
var yaw_pitch = Vector2(0,0)
func _process(delta):
var speedmod = 35.0 if Input.is_action_pressed("move_sprint") else 18.0
self.translate(Vector3(
Input.get_axis("move_left","move_right"),
Input.get_axis("equipCamera", "Interact"),
Input.get_axis("move_forward","move_backward")
@zvodd
zvodd / blender_link_by_subdir_walk_.py
Created February 1, 2026 15:59
Link all Objects from Blender Files under a subdirectory
@zvodd
zvodd / placeholder.txt
Created January 12, 2026 06:31
sample webhook config page
placeholder
@zvodd
zvodd / Dockerfile
Last active August 11, 2025 07:47
Pretty good "Index Of" Downloader
FROM python:3.12-alpine
ENV PYTHONUNBUFFERED=1
RUN apk add --no-cache bash wget aria2
RUN pip install --no-cache-dir beautifulsoup4
COPY . /usr/src/indexof_downloader
@zvodd
zvodd / togglechrome.js
Created May 30, 2025 13:40
userscript youtube.com toggle controller/chrome/overlay
let revoke = (
function() {
let display_on = false;
const selectors = `
.ytp-chrome-top
.ytp-chrome-bottom
.ytp-gradient-top
.ytp-gradient-bottom`.split('\n').map(s => s.trim()).filter(s => s);
function toggleYouTubeControls() {
@zvodd
zvodd / tagger_ui_addon.py
Last active May 20, 2025 13:30
blender tagging addon WIP
bl_info = {
"name": "Object Tagger",
"author": "zvodd",
"version": (1, 1, 4),
"blender": (4, 2, 0),
"location": "3D View > Sidebar (N Panel) > Tagger Tab | V for Pie Menu",
"description": "Adds, removes, and manages tags on objects using custom properties. Includes a customizable Pie Menu.",
"warning": "",
"doc_url": "",
"category": "Object",
@zvodd
zvodd / svg_transform_resize_folder.py
Created January 22, 2025 21:04
Resize SVG folder in/out; via viewbox and corresponding transform element wrap
import xml.etree.ElementTree as ET
import argparse
import sys
import os
from pathlib import Path
def resize_svg(input_file, width=None, height=None):
"""
Resize an SVG by wrapping its contents in a transform that scales to new dimensions
while preserving aspect ratio.
@zvodd
zvodd / svg_transform_resizer.py
Created January 22, 2025 20:50
Resize SVG; via viewbox and corresponding transform element wrap
import xml.etree.ElementTree as ET
import argparse
import sys
def resize_svg(input_file, width=None, height=None):
"""
Resize an SVG by wrapping its contents in a transform that scales to new dimensions
while preserving aspect ratio.
Args:
@zvodd
zvodd / fontforge_export_glyphs_as_svgs
Created January 15, 2025 13:23
Export a selection of glyphs as SVG using FontForge
##
## In FontForge( https://fontforge.org ) with font of choice open press Ctrl + . to open the script dialog, paste and run.
## You will be asked to save a file. Font will be put in the selected folder with the prefix of the name entered.
#
## Recommend: Symbols NerdFont at https://www.nerdfonts.com/font-downloads
##
import os
import pprint