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
#!/usr/bin/env bash | |
# this script gets your latex ready for arxiv submission by | |
# (1) sanitizing your *.tex of embarrassing comments, | |
# (2) arxiv-proofing filenames, & | |
# (3) gzipping everything needed into a convenient .tar.gz | |
HELPFLAG="-h" | |
FIGFLAG="-d" | |
OUTFLAG="-o" |
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
#!/usr/local/bin/bash | |
# a million random digits with 100,000 normal deviates | |
[ -f digits.txt ] || ( | |
wget https://www.rand.org/content/dam/rand/pubs/monograph_reports/MR1418/MR1418.digits.txt.zip && | |
unzip MR1418.digits.txt.zip) | |
rando=$( cat digits.txt | cut --complement -f1 -d' ' | xargs | sed 's/ *//g' ) | |
for n in {00..99}; do |
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/bash | |
usage () { | |
cat <<HELP_USAGE | |
usage: h5tree [OPTIONS] file[/OBJECT] | |
OPTIONS | |
-h, -?, --help Print a usage message and exit | |
-L level, -P pattern, etc Any flag accepted by \`tree\` |
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/bash | |
zoom() { | |
declare -A DATETIME2ID=( | |
[mon 4pm]=555123455 # meeting A | |
[thurs 11:30am]=555474747 # meeting B | |
[thurs 7pm]=555444777 # meeting C | |
[4pm]=555432100 # daily meeting D (superseded by A) | |
) |