Skip to content

Instantly share code, notes, and snippets.

View oodsway's full-sized avatar

Woods Wannamaker oodsway

View GitHub Profile
@oodsway
oodsway / keybase.md
Created March 13, 2019 16:49
keybase.md for verification

Keybase proof

I hereby claim:

  • I am oodsway on github.
  • I am oodsway (https://keybase.io/oodsway) on keybase.
  • I have a public key whose fingerprint is 7247 C9C9 DB5A DF76 337A C5AA AEF3 0970 A5B3 2624

To claim this, I am signing this object:

#!/usr/bin/env bash
# 2017-04-24:
# Purpose: develop a reg-ex for intergers > 0 separated by spaces and no alphanumerics.
# Fails when 0 appears between two accepted values or has leading 0 after good value.
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
# YELLOW=$(tput setaf 3)
RESET=$(tput sgr0)
@oodsway
oodsway / leap_test_algorithm.sh
Created March 27, 2017 20:37
leap_test_algorithm
#!/usr/bin/env bash
# 2017-03-10: algorithm to correct for leap years in logsum program
# 2017-03-11: Converted leap_test_algorithm to leap_test_function which is called in build_epoch_list
# 2017-03-12: Replaced original work with leap_test_function code with working leap_test_function
# code and tweaked to return leaps and the corrected leap for printing.
function format_date () {
# Retruns the date format requested in $1
case "$1" in
as_epoch)