This file contains hidden or 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
def covar_2d(e, s): | |
"""Returns a 2D covariance matrix with main diagonal in direction e and second diagonal perpendicular to e with proportional length s. | |
Params: | |
------- | |
e: array-like | |
Direction of the main diagonal. | |
s: float | |
Proportional scale of the second diagonal. |
This file contains hidden or 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
#!/bin/sh | |
usage() { | |
echo "Usage: marknote path" | |
exit -1 | |
} | |
FILE=$1 | |
[ -z "${FILE}" ] && usage |
This file contains hidden or 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
#!/bin/sh | |
ACTIVE_WINDOW=$(xdotool getactivewindow) | |
if [ -z "${1}" ]; then | |
xdotool search --classname Navigator windowactivate --sync key --clearmodifiers "ctrl+F5" | |
else | |
xdotool search --classname Navigator search --name $1 windowactivate --sync key --clearmodifiers "ctrl+F5" | |
fi |
OlderNewer