Skip to content

Instantly share code, notes, and snippets.

#evdev:name:UGTABLET*11.6*inch*PenDisplay*
# ctrl and alt disabled
KEYBOARD_KEY_700e0=!
KEYBOARD_KEY_700e1=!
# upper keys
KEYBOARD_KEY_70005=f13
KEYBOARD_KEY_70008=f14
KEYBOARD_KEY_700e2=f15
KEYBOARD_KEY_7002c=f16
# wheel forward (not changed)
#!/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
@allo-
allo- / exafmm-notes.txt
Created September 26, 2017 08:17
exafmm Notes
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
#!/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")