Skip to content

Instantly share code, notes, and snippets.

View pwab's full-sized avatar
💭
waiting for godot

Philipp Wabnitz pwab

💭
waiting for godot
View GitHub Profile
@pwab
pwab / svg2png.bat
Created November 24, 2023 13:22
Convert SVG to PNG with a batch script using Inkscape on Windows
:treeProcess
rem Do whatever you want here over the files of this subdir, for example:
FOR %%A IN (*.svg) DO "C:\Program Files\Inkscape\bin\inkscape.com" %%A --export-filename=%%A.png --export-width=128 --export-height=128
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)
@pwab
pwab / pendulum_energy.gd
Created June 20, 2023 15:57
Godot 4 physics investigation
#################################################################
# WHY:
# Investigating energy loss in Godot 4 Physics
#
# WHAT:
# A pendulum with no damping is created at 90°.
# Energy is lost on the way from maximum to maximum and
# the delta is tracked.
#
# HOW:
@pwab
pwab / Godot Snippets
Last active January 19, 2023 22:16
Godot Snippets
Just some Snippets for Godot 4.x
@pwab
pwab / README.md
Last active May 21, 2022 12:21
personal_fritzbox_filter_list
@pwab
pwab / bib2md.py
Created April 29, 2021 06:07
This script helps to convert bibtex to markdown. It is just a start for now.
#!/usr/bin/env python
"""bib2md
This script helps to convert bibtex to markdown. It is just a start for now.
"""
# The MIT License (MIT)
# Copyright © 2021 Philipp Wabnitz
@pwab
pwab / cp_webcam_access.md
Last active March 9, 2020 11:45
Notes on webcam access
@pwab
pwab / line.gd
Created February 17, 2018 16:51
[Godot 3] Line2D intersection points implemented with CollisionShapes
# This implementation is based on CollisionShapes and RayCasts.
# It has one major flaw: It detects intersections of different lines and not only of the line itself.
# I'm pretty sure this can be circumvented by changing the collision_layers of each line
# or by keeping track of each line and then excluding their collision_bodies when ray casting
# or by removing all the collision bodies when intersection_scanning is done
extends Line2D
var intersections = [] # Keep track of every intersection
var segments = [] # Keep track of every segment
@pwab
pwab / genesis_public_key
Created February 8, 2018 10:47
genesis_public_key
04785fa74e5e417c727163347d9af7b505bd92635cd9d6b3a92c390f7750b4ccab147953b86195cf076af36b6e0d5ea67f4d5b15093283ac23f8d61b76c3a5423b
@pwab
pwab / editor_settings.rst
Last active March 2, 2018 14:29
Godot Settings

Editor Settings

Interface

Editor