Skip to content

Instantly share code, notes, and snippets.

View tudorjnu's full-sized avatar

Tudor tudorjnu

View GitHub Profile
# Compositor
sudo pacman -S picom
# Display Manager
sudo pacman -S ly
# Window Manager and Dependencies
sudo pacman -S qtile python-psutil
# Notification Server
@tudorjnu
tudorjnu / default.mplstyle
Last active August 21, 2023 13:56
Matplotlib Config for pretty figures
#### MATPLOTLIBRC FORMAT
## NOTE FOR END USERS: DO NOT EDIT THIS FILE!
##
## This is a sample Matplotlib configuration file - you can find a copy
## of it on your system in site-packages/matplotlib/mpl-data/matplotlibrc
## (relative to your Python installation location).
## DO NOT EDIT IT!
##
## If you wish to change your default style, copy this file to one of the
@tudorjnu
tudorjnu / v-hacd.bash
Created May 21, 2023 08:56
downloads and installs v-hacd
set -xe
# remove any copies
rm -f testVHACD
# grab the VHACD (convex segmenter) binary
wget https://github.com/mikedh/v-hacd-1/raw/master/bin/linux/testVHACD
# check the hash of the downloaded file
echo "e1e79b2c1b274a39950ffc48807ecb0c81a2192e7d0993c686da90bd33985130 testVHACD" | sha256sum --check
# make it executable
chmod +x testVHACD
@tudorjnu
tudorjnu / parse_tb.py
Created May 19, 2023 12:44
parses a tensorboard file
def parse_tensorboard_log(path: Path):
from tensorboard.backend.event_processing.event_accumulator import EventAccumulator
import pandas as pd
tag = 'rollout/ep_len_mean'
acc = EventAccumulator(path)
acc.Reload()
# check if the tag exists
if tag not in acc.Tags()['scalars']:
@tudorjnu
tudorjnu / stl2mjcf.py
Last active August 10, 2022 14:56
Uses trimesh and V-HACD (version-3) to create collision hulls and creates the associated MJCF file.
import trimesh
from lxml import etree
import sys
import os
import shutil
import argparse
from trimesh.decomposition import convex_decomposition
_VHACD_EXECUTABLE = shutil.which('testVHACD')