Skip to content

Instantly share code, notes, and snippets.

View daenuprobst's full-sized avatar

Daniel Probst daenuprobst

View GitHub Profile
import pandas as pd
import tmap as tm
from faerun import Faerun
from mhfp.encoder import MHFPEncoder
from rdkit.Chem import AllChem
from tqdm import tqdm
# Setup
# - conda create -n tmap-env -c tmap tmap
# - conda activate tmap-env
@daenuprobst
daenuprobst / citylights.json
Created January 31, 2023 11:21
A city lights theme for windows terminal
{
"name": "City Lights",
"background": "#1D252C",
"black": "#41505E",
"blue": "#539AFC",
"brightBlack": "#55687A",
"brightBlue": "#569DFF",
"brightCyan": "#7BF7FF",
"brightGreen": "#A7FFBC",
"brightPurple": "#FF3F8E",
Invoke-Expression (&starship init powershell)
# Install latest version of PSReadLine in case of errors:
# Install-Module PSReadLine -AllowPrerelease -Force
Import-Module PSReadLine
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle InlineView
Set-PSReadLineOption -EditMode Windows
# Install scoop package manager:
@daenuprobst
daenuprobst / powershell_data.md
Created December 7, 2021 09:34
Useful powershell commands when working with data.

Posix head utility equivalent

gc file -Head 10
@daenuprobst
daenuprobst / vaccination_rate.csv
Last active November 25, 2021 17:34
Swiss vaccination rates 2021-11-25
Canton Rate Cases
AG 0.65 698.49
AI 0.54 1643.49
AR 0.59 1479.16
BE 0.67 903.72
BL 0.68 907.31
BS 0.69 1008.46
FR 0.66 675.89
GE 0.66 594.26
GL 0.6 1045.26
import string
from matplotlib.axes import Axes
from matplotlib import rcParams
def index_subplots(
axs: Axes,
font_size: float = 20,
font_weight: str = "bold",
font_family: str = rcParams["font.family"],
@daenuprobst
daenuprobst / borders.csv
Created February 17, 2021 18:35
Country land border and area data
Rank Country or territory Total length of land borders (km) Total surface area (km2) Border/area ratio (km/km2)
1 Vatican City 3.2 0.44 7.2727273
2 Monaco 4.4 2 2.2000000
3 San Marino 39 61 0.6393443
4 Liechtenstein 76 160 0.4650000
5 Sint Maarten (Netherlands) 10.2 34 0.3000000
6 Andorra 120.3 468 0.2570513
7 Gibraltar (United Kingdom) 1.2 6 0.2000000
8 Saint Martin (France) 10.2 54 0.1888889
9 Luxembourg 359 2586 0.1388244
@daenuprobst
daenuprobst / autumn_holidays_cases_corr.ipynb
Created January 24, 2021 13:21
autumn_holidays_cases_corr.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
canton to_date from_date
AG 2020-10-11 2020-09-26
AR 2020-10-18 2020-10-03
AI 2020-10-18 2020-10-03
BL 2020-10-11 2020-09-26
BS 2020-10-11 2020-09-26
BE 2020-10-11 2020-09-19
FR 2020-11-01 2020-10-17
GE 2020-10-25 2020-10-17
GL 2020-10-18 2020-10-03
@daenuprobst
daenuprobst / xmas_holidays_cases_corr.ipynb
Last active January 23, 2021 22:13
xmas_holidays_cases_corr.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.