Only guarantees structural compliance to definition
[A-ZÄÜÖ]{2,3}[ -][A-ZÄÜÖ]{1,2}[ -]\d{1,4}
Only guarantees structural compliance to definition
[A-ZÄÜÖ]{2,3}[ -][A-ZÄÜÖ]{1,2}[ -]\d{1,4}
#!/data/data/com.termux/files/usr/bin/bash | |
cd ~/storage/shared/documents/my-vault | |
git add --all | |
git commit -m "mobile update $(date)" | |
git pull --rebase | |
git push origin main |
$vm = Get-VM -Name DockerDesktopVM | |
$feature = "Zeitsynchronisierung" | |
Disable-VMIntegrationService -vm $vm -Name $feature | |
Enable-VMIntegrationService -vm $vm -Name $feature |
cd ~/storage/shared/documents/my-vault | |
git pull --rebase | |
git add --all | |
git commit -m "mobile update $(date)" | |
git push origin main |
#!/data/data/com.termux/files/usr/bin/bash | |
# ^^^^^^^^^^^^^^^ This says find the first instance of a sh (shell) | |
# binary and use that shell to execute these commands. | |
# There is little to no complexity here and no bashisms so it | |
# should work just fine on most systems and instances of shells | |
# (bash, zsh, sh, etc.) | |
# original from: https://gist.githubusercontent.com/lucidhacker/0d6ea6308997921a5f810be10a48a498/raw/386fd5c640282daeaa3c9c5b7f4e875511c2946c/zk_sync.sh | |
# modified according to: https://lucidhacker.substack.com/p/setting-up-git-syncing-for-obsidian |
import scipy | |
import scipy.cluster.hierarchy as sch | |
def cluster_corr(corr_array, inplace=False, impute_nan=False): | |
""" | |
Original author: @WYegelwel (https://wil.yegelwel.com/cluster-correlation-matrix/) | |
Rearranges the correlation matrix, corr_array, so that groups of highly | |
correlated variables are next to eachother | |
import pandas as pd | |
import seaborn as sns | |
def cardinalities(df: pd.DataFrame, plot: bool = False): | |
""" | |
Analyses cardinalities in a data frame | |
df DataFrame the data frame to be analyized | |
plot Plot whether to plot rather than return the result DataFrame | |
returns (DataFrame, Plot) of a matrix M(i,j) that reads row-wise, |
import numpy as np | |
def filter_tensor_by_mx(tensor, mx): | |
tshape = tensor.shape | |
row_ix = np.arange(mx.shape[0]) | |
col_ix = np.arange(mx.shape[1]) | |
ix = np.array(np.meshgrid(row_ix, col_ix)).T.reshape(-1,2).T | |
pane = rnd_ix_mx.ravel() | |
res = tensor[pane, ix[0], ix[1]].reshape(mx.shape) | |
return res |
# Rename this distribution example file to motion.conf | |
# | |
# This config file was generated by motion 4.1.1 | |
# Documentation: /usr/share/doc/motion/motion_guide.html | |
############################################################ | |
# Daemon | |
############################################################ | |
# Start in daemon (background) mode and release terminal (default: off) |