Skip to content

Instantly share code, notes, and snippets.

View remove_train_parameters.py
#!/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.
1) NCRIT
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
View passautotype.sh
#!/bin/bash
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
matching_titles+=("$window_folder")