Skip to content

Instantly share code, notes, and snippets.

@raine
Last active September 30, 2015 18:20
Show Gist options
  • Save raine/6da5778c5d7d749b1430 to your computer and use it in GitHub Desktop.
Save raine/6da5778c5d7d749b1430 to your computer and use it in GitHub Desktop.
require! ramda: {pipe, map}
ssps =
* target: 'summarize(stats.incoming.ssp_traffic.aaa, "1hr", "sum")'
* target: 'summarize(stats.incoming.ssp_traffic.bbb, "1hr", "sum")'
* target: 'summarize(stats.incoming.ssp_traffic.ccc, "1hr", "sum")'
ssp-traffic-name-regex = /ssp_traffic.([^,]+),/
# :: [Object] -> [String]
ssps-target-names = map pipe do
(.target)
(.match ssp-traffic-name-regex)
(.1)
stats =
names: ssps-target-names ssps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment