Some example code and snippets for Spark Core