Skip to content

Instantly share code, notes, and snippets.

View ludwiggj's full-sized avatar

Graeme Ludwig ludwiggj

  • Ipswich, UK
View GitHub Profile
@ludwiggj
ludwiggj / gist:df6b8b44685e2b015d0047c713ac04cb
Last active April 29, 2022 08:19
My Example Gist to Play With
This is version 1
This is the second line. Will it create a new revision?
@ludwiggj
ludwiggj / SparkDataframeDebug.scala
Created October 31, 2019 22:48
Strange Spark dataframe behaviour when reading in data from file
package org.ludwiggj
import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.types._
case class GameSales(game: String, salesTotal: Long)
object SparkDataframeDebug {
def main(args: Array[String]): Unit = {
package dsls
object DSLSample {
var pos = 0
object Start {
def move = (x: left.type) => { pos=1; x }
}
object left {