Skip to content

Instantly share code, notes, and snippets.

View meteozond's full-sized avatar
🚑
🌍

Alexander Klimenko meteozond

🚑
🌍
View GitHub Profile
@matthewfeickert
matthewfeickert / config_example.py
Last active October 23, 2023 09:32
JSON config files with argparse from the CLI example
import json
import argparse
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
matplotlib.rcParams['text.usetex'] = True
# Inspiration came from https://stackoverflow.com/q/3609852/8931942
from threading import Condition
import traceback
import time
from minecraft.networking.connection import Connection
from minecraft.networking.packets import clientbound, serverbound
from minecraft.networking.types import (
Position, PositionAndLook, RelativeHand, BlockFace,
)