Ruby and R code for working with a Neurosky Mindset