Skip to content

Instantly share code, notes, and snippets.

@lsauer
Created September 28, 2011 10:19
Show Gist options
  • Select an option

  • Save lsauer/1247582 to your computer and use it in GitHub Desktop.

Select an option

Save lsauer/1247582 to your computer and use it in GitHub Desktop.
Employee list - anonymized for statistical evaluation
//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