Skip to content

Instantly share code, notes, and snippets.

View lkluft's full-sized avatar

Lukas Kluft lkluft

View GitHub Profile
@lkluft
lkluft / generate_qrcode.py
Created April 11, 2024 07:31
Script to generate a simple QR code using the qrcode python package
import argparse
import qrcode
from qrcode.image.styledpil import StyledPilImage
from qrcode.image.styles.moduledrawers.pil import RoundedModuleDrawer
from qrcode.image.styles.colormasks import (
HorizontalGradiantColorMask,
SolidFillColorMask,
)
parser = argparse.ArgumentParser(
@lkluft
lkluft / monsoon2-getting-started.ipynb
Last active October 24, 2022 10:34
Getting started with the Monsoon 2.0 datasets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / run.sh
Last active September 21, 2021 13:40
Minimal working example of SLURM Job Arrays
#!/bin/bash
# Normal job run (only one job and one task)
sbatch test.job
# Start 10 jobs at a time (create a log file each, but this can be tweaked).
# We will run 16 jobs (ID 1--16) but only four at a time. If you leave out the
# `%4` SLURM usually sets an upper limit per user (about 20 or so).
# More info: https://slurm.schedmd.com/job_array.html
job_id=$(sbatch --parsable --array=1-16%4 test.job)
@lkluft
lkluft / identicon-dark.ipynb
Last active November 9, 2021 10:32
Create GitHub-style dark-theme identicons
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / planetary-pools.ipynb
Created May 10, 2020 15:02
Solving an n-body problem numerically using Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / mcica-sw.ipynb
Created May 16, 2019 12:53
RRTMG with McICA
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / flags_using_enum.ipynb
Created May 8, 2019 08:17
Representing cloud flags using Python enum
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lkluft
lkluft / jacobian_movie.ipynb
Last active January 23, 2019 08:52
Visualize ARTS Jacobian simulations.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.