Skip to content

Instantly share code, notes, and snippets.

View danaszova's full-sized avatar

Dana Szova danaszova

View GitHub Profile
#mj-snowplow-enriched-dev
#mj-snowplow-enriched
aws glue create-table --database-name snowplow_data --table-input '
{
"Name": "events",
#mj-snowplow-enriched-dev
aws glue create-table --database-name snowplow_data --table-input '
{
"Name": "archive",
"Owner": "owner",
"Retention": 0,
"StorageDescriptor": {
"Columns": [
{
Currently - We are working and branching off the develop branch. Merging into master and updating the build weekly.
More information needs to be added as we define our development process / cycle.
@danaszova
danaszova / geocoder.js
Created February 9, 2018 05:15
geocoder
exports.geocoder = (ln, cb, key) => {
const { address, city, state } = ln;
const protocol = "https://";
const url = address + "," + city + "," + state;
const api = "maps.googleapis.com/maps/api/geocode/json?address=";
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == XMLHttpRequest.DONE) {
const location = JSON.parse(xhr.responseText).results[0].geometry
.location;