Skip to content

Instantly share code, notes, and snippets.

@Trindaz
Trindaz / gist:3078081
Created July 9, 2012 18:33
2012-07-09 spokeo - processes 4, batchSize 20, batchCount 180
/usr/local/bin/node src/testScripts/PeopleSearchTests/scratchpad/umbrella_test.js
Starting batch 0
id: 1, 20 so far, got response from 1, and still waiting: 19 max ever: 19; 0 since last response, max: 0; roundTrip: 1072, max: 1072; erros so far: 0, current: undefined
Starting batch 1
id: 6, 40 so far, got response from 2, and still waiting: 38 max ever: 38; 29 since last response, max: 29; roundTrip: 1026, max: 1072; erros so far: 0, current: undefined
id: 17, 40 so far, got response from 3, and still waiting: 37 max ever: 38; 10 since last response, max: 29; roundTrip: 1024, max: 1072; erros so far: 0, current: undefined
id: 5, 40 so far, got response from 4, and still waiting: 36 max ever: 38; 102 since last response, max: 102; roundTrip: 1141, max: 1141; erros so far: 0, current: undefined
id: 8, 40 so far, got response from 5, and still waiting: 35 max ever: 38; 539 since last response, max: 539; roundTrip: 1677, max: 1677; erros so far: 0, current: undefined
id: 7, 40 so far, got response from 6, and st
@Trindaz
Trindaz / gist:3078320
Created July 9, 2012 19:16
2012-07-09 spokeo - processes 8, batchSize 20, batchCount 60
/usr/local/bin/node src/testScripts/PeopleSearchTests/scratchpad/umbrella_test.js
Starting batch 0
id: 18, 20 so far, got response from 1, and still waiting: 19 max ever: 19; 0 since last response, max: 0; roundTrip: 986, max: 986; erros so far: 0, current: undefined
Starting batch 1
id: 17, 40 so far, got response from 2, and still waiting: 38 max ever: 38; 43 since last response, max: 43; roundTrip: 1030, max: 1030; erros so far: 0, current: undefined
id: 14, 40 so far, got response from 3, and still waiting: 37 max ever: 38; 27 since last response, max: 43; roundTrip: 1060, max: 1060; erros so far: 0, current: undefined
id: 4, 40 so far, got response from 4, and still waiting: 36 max ever: 38; 98 since last response, max: 98; roundTrip: 1169, max: 1169; erros so far: 0, current: undefined
id: 16, 40 so far, got response from 5, and still waiting: 35 max ever: 38; 19 since last response, max: 98; roundTrip: 1175, max: 1175; erros so far: 0, current: undefined
id: 12, 40 so far, got response from 6, and stil
@Trindaz
Trindaz / gist:3078044
Created July 9, 2012 18:26
2012-07-09 spokeo - processes 8, batchSize 20, batchCount 180
/usr/local/bin/node src/testScripts/PeopleSearchTests/scratchpad/umbrella_test.js
Starting batch 0
id: 3, 20 so far, got response from 1, and still waiting: 19 max ever: 19; 0 since last response, max: 0; roundTrip: 939, max: 939; erros so far: 0, current: undefined
id: 19, 20 so far, got response from 2, and still waiting: 18 max ever: 19; 13 since last response, max: 13; roundTrip: 931, max: 939; erros so far: 0, current: undefined
id: 5, 20 so far, got response from 3, and still waiting: 17 max ever: 19; 13 since last response, max: 13; roundTrip: 965, max: 965; erros so far: 0, current: undefined
id: 16, 20 so far, got response from 4, and still waiting: 16 max ever: 19; 3 since last response, max: 13; roundTrip: 950, max: 965; erros so far: 0, current: undefined
Starting batch 1
id: 17, 40 so far, got response from 5, and still waiting: 35 max ever: 35; 82 since last response, max: 82; roundTrip: 1030, max: 1030; erros so far: 0, current: undefined
id: 8, 40 so far, got response from 6, and still waiting
@Trindaz
Trindaz / gist:3074696
Created July 9, 2012 06:56
2012-07-08 1000-3
/usr/local/bin/node src/testScripts/PeopleSearchTests/scratchpad/umbrella_test.js
Starting batch 0
1000 so far, got response from 1, and still waiting: 999 max ever: 1000
1000 so far, got response from 2, and still waiting: 998 max ever: 1000
1000 so far, got response from 3, and still waiting: 997 max ever: 1000
1000 so far, got response from 4, and still waiting: 996 max ever: 1000
1000 so far, got response from 5, and still waiting: 995 max ever: 1000
1000 so far, got response from 6, and still waiting: 994 max ever: 1000
1000 so far, got response from 7, and still waiting: 993 max ever: 1000
1000 so far, got response from 8, and still waiting: 992 max ever: 1000
@Trindaz
Trindaz / gist:3074694
Created July 9, 2012 06:56
2012-07-08 1000-2
/usr/local/bin/node src/testScripts/PeopleSearchTests/scratchpad/umbrella_test.js
Starting batch 0
1000 so far, got response from 1, and still waiting: 999 max ever: 1000
1000 so far, got response from 2, and still waiting: 998 max ever: 1000
1000 so far, got response from 3, and still waiting: 997 max ever: 1000
1000 so far, got response from 4, and still waiting: 996 max ever: 1000
1000 so far, got response from 5, and still waiting: 995 max ever: 1000
1000 so far, got response from 6, and still waiting: 994 max ever: 1000
1000 so far, got response from 7, and still waiting: 993 max ever: 1000
1000 so far, got response from 8, and still waiting: 992 max ever: 1000
@Trindaz
Trindaz / gist:3074729
Created July 9, 2012 07:03
2012-07-08 500-01
/usr/local/bin/node src/testScripts/PeopleSearchTests/scratchpad/umbrella_test.js
Starting batch 0
500 so far, got response from 1, and still waiting: 499 max ever: 500
500 so far, got response from 2, and still waiting: 498 max ever: 500
500 so far, got response from 3, and still waiting: 497 max ever: 500
500 so far, got response from 4, and still waiting: 496 max ever: 500
500 so far, got response from 5, and still waiting: 495 max ever: 500
500 so far, got response from 6, and still waiting: 494 max ever: 500
500 so far, got response from 7, and still waiting: 493 max ever: 500
500 so far, got response from 8, and still waiting: 492 max ever: 500
@Trindaz
Trindaz / gist:3074685
Created July 9, 2012 06:54
2012-07-08 1000-1
/usr/local/bin/node src/testScripts/PeopleSearchTests/scratchpad/umbrella_test.js
Starting batch 0
1000 so far, got response from 1, and still waiting: 999 max ever: 1000
1000 so far, got response from 2, and still waiting: 998 max ever: 1000
1000 so far, got response from 3, and still waiting: 997 max ever: 1000
1000 so far, got response from 4, and still waiting: 996 max ever: 1000
1000 so far, got response from 5, and still waiting: 995 max ever: 1000
1000 so far, got response from 6, and still waiting: 994 max ever: 1000
1000 so far, got response from 7, and still waiting: 993 max ever: 1000
1000 so far, got response from 8, and still waiting: 992 max ever: 1000
@Trindaz
Trindaz / Test1
Created July 8, 2012 12:32
Test1
/usr/local/bin/node src/testScripts/PeopleSearchTests/scratchpad/umbrella_test.js
Starting batch 0
It's been 123 since you start this script
360 so far, got response from 1, and still waiting: 359 max ever: 360
360 so far, got response from 2, and still waiting: 358 max ever: 360
360 so far, got response from 3, and still waiting: 357 max ever: 360
360 so far, got response from 4, and still waiting: 356 max ever: 360
360 so far, got response from 5, and still waiting: 355 max ever: 360
360 so far, got response from 6, and still waiting: 354 max ever: 360
360 so far, got response from 7, and still waiting: 353 max ever: 360
var jsdom = require('jsdom');
var body1="<html><head>"+
"<script type='text/javascript' src='https://maps.googleapis.com/maps/api/js?key=***key***&sensor=false'></script>"+
"<script type='text/javascript' src='https://raw.github.com/gist/2878326/f2d5d46b07a9f425870fa025c2cfbeb379c41a67/gistfile1.js'></script></head>"+
"<script>functions testMe(){ var a = 1;}</script>"
"<body>"
"<div><form id='addressform'>"+
"<input id='address' class='address' type='textbox' value='1 Market St, San Francisco'>"+
"<input id='test' class='test' type='textbox' value='not tested'></form></div></body>"+
function codeAddress(){
var geocoder,latLng;
geocoder = new google.maps.Geocoder();
var address = document.getElementById('address').value;
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
latLng=results[0].geometry.location;
document.getElementById("address").value = latLng;
} else {
alert('Geocode was not successful for the following reason: ' + status);