Skip to content

Instantly share code, notes, and snippets.

View trflorian's full-sized avatar
🦺
building

Florian Trautweiler trflorian

🦺
building
View GitHub Profile
@trflorian
trflorian / ruff.toml
Created April 24, 2025 21:09
My opinionated ruff config
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
@trflorian
trflorian / restaurants.json
Last active December 14, 2023 22:42
List of restaurants
[{
"id": 0,
"name": "Subway",
"description": "Fastfood Sandwiches",
"address": "ZH",
"latitude": 0.0,
"longitude": 0.0,
"phone": "-",
"website": "www.subway.ch",
"imageUrl": "https://www.allrecipes.com/thmb/Sb7Xjv5oJJuovAoZCg1IO4Bt3vg=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/AR-subway-4x3-6e1f8bb7150647bbbc16a0605a394b86.jpg",
@trflorian
trflorian / selection_circle.gdshader
Last active November 18, 2023 18:53
Selection Circle Godot Shader
shader_type spatial;
uniform float radius : hint_range(0, 10) = 0.2;
uniform float thickness : hint_range(0.01, 1.0) = 0.02;
void fragment() {
// apply color from sprite modulate property
ALBEDO = COLOR.rgb;
// offset depth to prevent z-fighting