Skip to content

Instantly share code, notes, and snippets.

@samklr
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samklr/9262b141d9cd8e6c1721 to your computer and use it in GitHub Desktop.
Save samklr/9262b141d9cd8e6c1721 to your computer and use it in GitHub Desktop.
WISDM actitracker
val data= sc.textFile("/home/samklr/data/")
val gts = data.map(_.split(","))
.map (lin => lin(2) + "// " + " wisdm.atitracker{user=" + lin(0) + "} " + lin(3) +"\n" +
lin(2) + "// " + " wisdm.atitracker{user=" + lin(0) + "} " + lin(4) +"\n"+
lin(2) + "// " + " wisdm.atitracker{user=" + lin(0) + "} " + lin(5) +"\n"
)
gts.take(15).foreach(println)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment