Only guarantees structural compliance to definition
[A-ZÄÜÖ]{2,3}[ -][A-ZÄÜÖ]{1,2}[ -]\d{1,4}
| { | |
| "trace": { | |
| "last_step": "sequence/0", | |
| "run_id": "7ed63d28d91f10de3817de1695fb27e1", | |
| "state": "stopped", | |
| "script_execution": "error", | |
| "timestamp": { | |
| "start": "2025-01-05T10:55:51.170362+00:00", | |
| "finish": "2025-01-05T10:55:51.173932+00:00" | |
| }, |
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.github.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 |