Skip to content

Instantly share code, notes, and snippets.

View bodamat's full-sized avatar

Bohdan bodamat

View GitHub Profile
@fenix-hub
fenix-hub / #description.md
Last active May 6, 2025 16:37
GDScript JSON <> Class Serializer/Deserializer

You can find usages in the GDScript Unirest plugin

This is a fast serializer/deserializer written in GDScript to convert a JSON (Dictionary) to a class, using something similar to the Reflection concecpt. json_to_class can be used to convert a Dictionary to a Class. All keys in the Dictionary will be treated as variables and their types will be guessed in the best way possible. A class (defined by the class_name keyword) must extend Reference or Object or be an inner class, or else Godot will not able to see its properties. It is also possible to deserialize a JSON key to a class property with a different name using the export hint as a variable name.

example usage:

@stuarta0
stuarta0 / blend.py
Created August 28, 2022 23:02
Frame blending motion blur
#!/usr/bin/python
import os
import re
from PIL import Image
# settings
input_folder = 'input-sequence'
input_filename_pattern = 'movie(\d+).png'
@AndreaCatania
AndreaCatania / importer.gd
Last active March 11, 2026 06:05
Godot 4 automated material assigner
## License MIT
##
## This Post Import script automatically assign the
## material to the Mesh if it's found inside the
## `res://materials` directory.
##
## # How to use
## To you use it, you need to set this script as Post Import script
## on the file.fbx or file.glb.
##
@amitbend
amitbend / nodemailer with Zoho
Last active October 17, 2022 12:32
nodemailer with Zoho
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
host: 'smtp.zoho.com',
port: 465,
secure: true, //ssl
auth: {
user: 'youremail@amitbend.com',
pass: 'yourpassword'
}
});