I hereby claim:
- I am samirketema on github.
- I am samir_neighborly (https://keybase.io/samir_neighborly) on keybase.
- I have a public key ASAdrjZUC8YBnHZvk4dsT0pUc7twWyzAdrG1b4DKsQSKnAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
orderid | latitude | longitude | estimateddeliverytime | deliveredat | totalprice | zipcode | cluster | |
---|---|---|---|---|---|---|---|---|
1552679 | 37.697073300000000 | -122.48590320000000 | 259 | 2017-08-08T00:29:34.647+00:00 | 48.36 | 94015 | cluster1 | |
1552697 | 37.782185200000001 | -122.45454420000000 | 54 | 2017-08-08T00:26:00.550+00:00 | 46.86 | 94118 | cluster2 | |
1552675 | 37.780840499999996 | -122.39582000000000 | 228 | 2017-08-08T00:42:56.503+00:00 | 64.39 | 94107 | cluster2 | |
1552934 | 37.783130600000000 | -122.38896219999999 | 209 | 2017-08-08T01:13:19.373+00:00 | 81.51 | 94107 | cluster2 | |
1552983 | 37.323785999999998 | -121.87890400000001 | 345 | 2017-08-08T01:14:20.740+00:00 | 74.80 | 95112 | cluster7 | |
1552998 | 37.773665899999997 | -122.27845019999999 | 0 | 2017-08-08T01:22:50.903+00:00 | 92.77 | 94501 | cluster5 | |
1553031 | 37.754258999999998 | -122.39896200000000 | 18 | 2017-08-08T01:26:13.583+00:00 | 112.24 | 94107 | cluster2 | |
1552980 | 37.378557999999998 | -122.12542000000001 | 105 | 2017-08-08T01:41:10.560+00:00 | 65.88 | 94022 | cluster0 | |
1553228 | 37.795776199999999 | -122.21607590000001 | 126 | 2017-08-08T01:46:15.740+00:00 | 42.94 | 94602 | cluster5 |
import java.util.*; | |
class CE{ | |
public static void main(String[] args){ | |
String[] test = {"car", "mom", "dad", "book", "ant", "bob"}; | |
ArrayList<ArrayList<String>> t = ce(test); | |
} | |
//This basically transforms each character in temporary cipher that's based on the unique characters found | |
//within the string you are currently processing. Based off of that information, we are able to keep track of similar |
var clndrEvents = []; | |
input.events.forEach(function(currEvent) { | |
//transform event to digestable format for clndr.js | |
var temp = {}; | |
temp.occasion = currEvent.occasion; | |
temp.invited_count = currEvent.invited_count; | |
//Store as moment() for clndr | |
temp.date = moment(currEvent.year.toString() + "-" + | |
currEvent.month.toString() + "-" + |
var fs = require('fs'); | |
//Generally accepted value for Earth's radius in Kilometers. | |
var EARTH_RADIUS_IN_KILOMETERS = 6371; | |
//Distance at which we'll invite customers for drinks :) | |
var DISTANCE_FOR_DRINKS_IN_KILOMETERS = 100; | |
function readInput() { | |
try { | |
//Read in file and split by lines (as denoted in input). |