Google Cloud – Single Instance

 

Directory Tree Files to Consul Keys

This one-liner traverses a directory tree, reads the files and PUTs them into Consul Key/Value Store using the filename as the key and it’s contents as the value.

 

D3 Data

sel.datum(aryData) vs. sel.data(aryData).datum() gives aryData to all elements in the selection..data() gives one unique array value in aryData to each element in the selection (i.e. .update()). It also has .enter() and .exit() as methods. ExampleHere’s the data we’ll use with .data()