This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Shimazaki, Hideaki, and Shigeru Shinomoto. | |
"A method for selecting the bin size of a time histogram." | |
Neural computation 19.6, 1503 (2007). | |
https://doi.org/10.1162/neco.2007.19.6.1503 | |
""" | |
import argparse | |
from pathlib import Path | |
import matplotlib.pyplot as plt |
Find bundle ID: https://apple.stackexchange.com/a/425113
com.todesktop.230313mzl4w4u92
Disable "press and hold": https://stackoverflow.com/a/70911250
$ defaults delete -g ApplePressAndHoldEnabled
$ defaults write "com.todesktop.230313mzl4w4u92" ApplePressAndHoldEnabled -bool false
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "picongpu/simulation_defines.hpp" | |
#include "picongpu/particles/Particles.hpp" | |
#include <pmacc/particles/Identifier.hpp> | |
#include <pmacc/meta/conversion/MakeSeq.hpp> | |
#include <pmacc/identifier/value_identifier.hpp> | |
#include <pmacc/particles/traits/FilterByFlag.hpp> | |
#include <pmacc/meta/String.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import os | |
START_DIR = '/data/storage/berceanu/Development/signac-driven-fbpic' # replace with your directory | |
DEST_DIR = '/data/storage/berceanu/Development' # replace with your directory | |
CMD = 'enscript -1rG --line-numbers --highlight=python -p - --color=0 {} | ps2pdf -i -o {}.pdf' | |
def print_source_code(): | |
for dirname, subdirs, filenames in os.walk(START_DIR): | |
if 'env' in subdirs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file can update the JupyterHub Helm chart's default configuration values. | |
# | |
# For reference see the configuration reference and default values, but make | |
# sure to refer to the Helm chart version of interest to you! | |
# | |
# Introduction to YAML: https://www.youtube.com/watch?v=cdLNKUoMc6c | |
# Chart config reference: https://zero-to-jupyterhub.readthedocs.io/en/stable/resources/reference.html | |
# Chart default values: https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/HEAD/jupyterhub/values.yaml | |
# Available chart versions: https://jupyterhub.github.io/helm-chart/ | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import os | |
START_DIR = '/Users/berceanu/Development/signac-driven-fbpic' # replace with your directory | |
DEST_DIR = '.' # replace with your directory | |
CMD = 'enscript -1rG --line-numbers --highlight=python -p - --color=0 {} | pstopdf -i -o {}.pdf' | |
def print_source_code(): | |
for dirname, subdirs, filenames in os.walk(START_DIR): | |
if 'env' in subdirs: |
$ ssh thorviaheimdall
$ conda activate /data/storage/berceanu/software/pkg/mambaforge_pic
$ cd /data/storage/berceanu/Development/signac-driven-fbpic/signac
. spack/share/spack/setup-env.sh
spack install openmpi@4.1.3 %gcc@9.4.0
spack load openmpi@4.1.3
spack install hdf5@1.12.2 %gcc@9.4.0 +cxx +fortran ^openmpi
spack load hdf5@1.12.2
spack install ffmpeg@4.4.1 %gcc@9.4.0
NewerOlder