Skip to content

Instantly share code, notes, and snippets.

@gardnervickers
Created June 15, 2015 12:59
Show Gist options
  • Save gardnervickers/0e6f5b6c00ab7197eb04 to your computer and use it in GitHub Desktop.
Save gardnervickers/0e6f5b6c00ab7197eb04 to your computer and use it in GitHub Desktop.
Example workflow
;; Code
[[:in :concat-names]
[:concat-names :parse-dates]
[:parse-dates :time-left]
[:time-left :notify-near-expiration]
[:notify-near-expiration :out]
[:time-left :out]]
;; What the code means
:in ; Read data line-by-line from a file
|
:concat-names ; transform :firstname and :lastname fields into :fullname
|
:parse-dates ; try to parse date fields
|
:time-left ; Calculate how many days left in current plan
/ \
to-db :out :notify-near ; if there is less than a year left on the current plan, send an email
:-expiration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment