Physics & Data Science MSc Student at ELTE, Budapest.
-
Wigner Research Centre for Physics
- Budapest
Highlights
- Pro
Pinned Loading
-
np-array-sort-by-col.py
np-array-sort-by-col.py 1# sort array with regards to nth column
2# copied from https://gist.github.com/stevenvo/e3dad127598842459b68#file-numpy-array-sort-py
3arr = arr[arr[:,n].argsort()]
-
chunks.py
chunks.py 1def chunks(a, n):
2for i in range(0, len(a), n):
3yield a[i:i + n]
45list(chunks(list(range(52)), 6))
-
my_timestamp.py
my_timestamp.py 1import time
23def timestamp():
4return time.strftime("%y%m%dd%Hh%Mm%S")
-
python_multiprocess.py
python_multiprocess.py 1import scipy
2from scipy.stats import levy, laplace, maxwell, cauchy
3import multiprocessing as mp
4from datetime import datetime
5 -
kill-all-slaves.sh
kill-all-slaves.sh 1# kill all threads where the full command includes 'experiment-18'
2ps -axww | grep experiment-18 | grep -v grep | awk '{print $1}' | xargs kill
-
run-vscode.sh
run-vscode.sh 1PORT=$1
2PASSWD=$2
3mkdir -p ~/.config/code-server
4printf "bind-addr: 127.0.0.1:$PORT\n\
5auth: password\n\
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.