Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import argparse
import json
import os
import numpy as np
import tensorflow as tf
import time
import model, sample, encoder_sp as encoder
View exafmm-notes.txt
Notes on using exafmm for multiple evaluation on moving particles and common pitfalls.
You need to choose NCRIT >= 2 even for debugging, because else too little memory is allocated.
2) Store Bodies
The Cell structs use pointers into the Bodies vector. This means the Bodies vector needs to be destructed after Cells,
i.e. as global variable or class member.
3) Ordering
sleep 1
windowid="$(xdotool getactivewindow)"
windowname="$(xdotool getwindowname "$windowid")"
declare -a matching_titles
for folder in $HOME/.password-store/autotype/*;do
window_folder="$(basename "$folder")";
if grep -qFi "$window_folder" <<<"$windowname";then