Skip to content

Instantly share code, notes, and snippets.

@Thisisnotdalton
Thisisnotdalton / steam_cloud_save.gd
Last active January 2, 2025 07:24
Godot Steam Cloud saving singleton
# This code was made possible using the following references:
# 1. Softwool's godot-steam-cloud plugin: https://github.com/softwoolco/godot-steam-cloud
# 2. GodotSteam's remote storage documentation: https://godotsteam.com/classes/remote_storage
# 3. Godot's hashing documentation: https://docs.godotengine.org/en/stable/classes/class_hashingcontext.html
# MIT License
#
# Copyright (c) 2024 Pukiru
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
@Thisisnotdalton
Thisisnotdalton / shared_memory_dataframes.py
Last active October 9, 2022 08:11
Examples of using Python 3.8+ shared_memory for working with pandas DataFrames and geopandas GeoDataFrames.
import pickle
import typing
from multiprocessing.shared_memory import SharedMemory, ShareableList
import numpy as np
import pandas as pd
import geopandas as gpd
def create_shared_memory_of_size(shared_memory_name: str, minimum_size_bytes: int) -> SharedMemory: