I hereby claim:
- I am rkoopmann on github.
- I am rkoopmann (https://keybase.io/rkoopmann) on keybase.
- I have a public key ASDOyxVKOafjf2mEUNRpf986Gla_Vj_yqzt_03E25NpTfAo
To claim this, I am signing this object:
#!/bin/bash | |
cd ../_events/ | |
dateList=$(jq -r '.[] | .[] | [.Date] | @tsv' ../_data/events/list.json | sort -u) | |
echo "Looking for missing event files." | |
for d in ${dateList}; do | |
y=$(echo "${d}" | cut -d- -f1) |
#!/bin/bash | |
dataset_list="$(bq ls -n 500 | awk '{print $1}')" | |
for dataset in ${dataset_list}; do | |
view_list="$(bq ls --dataset_id ${dataset} -n 500 | awk '{if($2 == "VIEW"){print $1}}')" | |
for view in ${view_list}; do | |
echo "${dataset}.${view}" |
#!/bin/bash | |
rm -f ~/dev/tiny-desk-concerts.txt | |
for y in {2008..2021}; do | |
echo "${y}" | |
for m in {1..12}; do | |
echo "${m}" | |
curl -s "https://www.npr.org/series/tiny-desk-concerts/archive?date=${m}-31-${y}" \ | |
| htmlq 'h2.title' >> ~/dev/tiny-desk-concerts.txt |
#!/bin/sh | |
parse_yaml() { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; | |
vname[indent] = $2; | |
for (i in vname) {if (i > indent) {delete vname[i]}} |
#!/bin/bash | |
# split-file.sh | |
# a file-splitting script. | |
# | |
# take a delimited file, choose a column suitable for splitting by value, split the file into sub- | |
# directories (named after cplitting column and split value). | |
# | |
# limitations | |
# - header record cannot contain spaces |
I hereby claim:
To claim this, I am signing this object:
#!/usr/local/bin/zsh | |
osascript \ | |
-e 'tell application "Notes" to activate' \ | |
-e 'delay 1' | |
for f in $@*.html | |
do | |
filename=$(basename "$f") | |
extension="${filename##*.}" |
%let location=%sysget(sasroot)\sas.exe ; | |
%let config=%sysfunc(getoption(CONFIG)); | |
%let client=; | |
*&TRN is a full path for a given client directory. it is standard structure for ALL clients.; | |
data _null_; | |
re=prxparse('/.*Clients\\(.+?)\\.*/'); | |
if prxmatch(re, "&TRN") then do; | |
client=prxposn(re, 1, "&TRN"); | |
put client; |
{ | |
name = "Correspondence & Thread Arcs"; | |
rootViewer = | |
{ | |
viewerType = "MmSplitView"; | |
orientation = "horizontal"; | |
children = | |
( | |
{ | |
viewerType = "MmBoxView"; |