Created
September 28, 2011 10:19
-
-
Save lsauer/1247582 to your computer and use it in GitHub Desktop.
Employee list - anonymized for statistical evaluation
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
//author: lsauer.com | |
//Data is in the form | |
//[ ["JOEBRA","Doeduardo","9.9.1999","Midwaystreet 12","1160 Vienna", "Austria" ],...] | |
//if you need the name fully anonymized shuffle the name before substr or calculate a Soundex of it | |
for(i=0; i<x.autpolData.length; i++){ | |
tmp[i] = [].concat(x.autpolData[i][1].substr(0,4), x.autpolData[i][2].split('.')[2], x.autpolData[i].slice(3) ) | |
} | |
//["Doed", "1948", "Midwaystreet 12", "1160 Vienna", "Austria" | |
//the address is resolved to GPS lat/long -> see my scripts_n_snips folder | |
//often times JS is faster and more powerful than an editor with RegExp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment