Skip to content

Instantly share code, notes, and snippets.

View MathijsdeBoer's full-sized avatar

Mathijs de Boer MathijsdeBoer

View GitHub Profile
@MathijsdeBoer
MathijsdeBoer / fx60-100.csv
Last active February 2, 2026 12:52
Simulate approximate airfoil characteristics for a given UAV design
Alpha Cl Cd Cdp Cm Top_Xtr Bot_Xtr Re
-9.75 -0.3758 0.1229 0.11589 -0.0269 1.0 0.2065 50000.0
-9.5 -0.3494 0.11654 0.10951 -0.0253 1.0 0.2141 50000.0
-9.25 -0.3692 0.11706 0.11018 -0.027 1.0 0.2207 50000.0
-9.0 -0.3426 0.11095 0.10405 -0.0253 1.0 0.2285 50000.0
-8.75 -0.3605 0.11083 0.1041 -0.0264 1.0 0.2352 50000.0
-8.5 -0.3375 0.10554 0.09878 -0.0248 1.0 0.2438 50000.0
-8.25 -0.3489 0.1043 0.09769 -0.025 1.0 0.2505 50000.0
-8.0 -0.3349 0.1005 0.09388 -0.0238 1.0 0.2593 50000.0
-7.75 -0.3403 0.09838 0.09189 -0.0232 1.0 0.2664 50000.0
@MathijsdeBoer
MathijsdeBoer / Dockerfile
Created May 20, 2022 08:00
PyTorch3d Dockerfile
# syntax=docker/dockerfile:1
# PyTorch3D supports up to PyTorch 1.11, 22.02 is the last image to use 1.11 before they
# upgrade to 1.12
FROM nvcr.io/nvidia/pytorch:22.02-py3
WORKDIR /app
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
# Get the basic Linux packages upgraded and get the development tools setup
@MathijsdeBoer
MathijsdeBoer / SE_ExtractBlockData.py
Last active January 30, 2020 23:07
Extract all of Space Engineer's blocks' needed components and generate a C# dictionary definition
"""
Extract Block Data for Space Engineers
Author: Czorio
Updated: 2020-01-30 (5)
Tested on: Python 3.7.4-x64
Usage:
Modify the se_path variable to point at your SE install location. Run the script to generate a Dict.txt file in your current directory.
This Dict.txt file should have slightly formatted C# code that declares and initializes a Dictionary for use in SE scripts.
'''
Converts a single heightmap to a tiled heightmap
Usage:
in a CLI/powershell:
> python convert_l3dt_to_ue4.py '<path to input hm>' '<path to output directory' <output size>
Example:
> python convert_l3dt_to_ue4.py 'c:/l3dt/hm.png' 'c:/l3dt/output' 512
'''
@MathijsdeBoer
MathijsdeBoer / Sort_Photos.py
Last active November 30, 2019 16:02
Quickly sort all photos (or files) by modification dates in subdirectories
from __future__ import print_function, division
import os
import shutil
import time
count = 0
unsortable_directory = "unsorted"
print("Sort Photos")