This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# -- R Script to parse Tesla location metrics and plot a heatmap of where the car | |
# has been | |
# -- Needs historical data as captured by https://github.com/hjespers/teslams | |
# -- 2018 Alex Bewley | |
# | |
require(ggplot2) | |
require(ggmap) | |
require(RPostgreSQL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
-- use buildDottedTable([],"", json); | |
-- understands nesting of dictionaries and arrays for indexing | |
-- ex: d = { a : 1, b : [ { c: 2 }, { d: 3} ], e: { f: "string" } } | |
-- buildDottedTable([],"",d); | |
[ { key: 'a', val: 1 }, | |
{ key: 'b.0.c', val: 2 }, | |
{ key: 'b.1.d', val: 3 }, | |
{ key: 'e.f', val: 'string' } ] | |
*/ |