Skip to content

Instantly share code, notes, and snippets.

@maasg
maasg / UniqueGlobalStateChains.snb.ipynb
Created July 27, 2017 14:26
Build path for different events and assign globalID
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maasg
maasg / SimpleWordTCPServer.scala
Last active August 15, 2017 19:39
Simple TCP server delivering random words from a predefined dictionary
package so
import java.io.PrintStream
import java.net.Socket
import java.net._
import scala.concurrent.Future
class SocketHandler(socket: Socket) {
def deliver(data: Iterator[String]): Unit = {

Keybase proof

I hereby claim:

  • I am maasg on github.
  • I am maasg (https://keybase.io/maasg) on keybase.
  • I have a public key ASChpDgzfLIUh_ndWgJ1dBXEyYCfN9PkTdBVlYmqx6GUYgo

To claim this, I am signing this object:

@maasg
maasg / test-execution.md
Last active April 22, 2018 13:05
Spark Streaming 2.2.0 Earliest offset reset

Earliest Offset Reset Test Scenario

Env: Spark 2.2.0 using Kafka integration 0.10

./spark-shell  --packages org.apache.spark:spark-streaming-kafka-0-10_2.11:2.2.0

Welcome to
      ____              __
     / __/__  ___ _____/ /__
@maasg
maasg / rampupRateSource.snb.ipynb
Last active May 2, 2018 19:09
Comparison of Rate Source implementation PR
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import cloudflow.sbt.CloudflowKeys.{cloudflowDockerImageName, cloudflowDockerRegistry, cloudflowDockerRepository}
import cloudflow.sbt.ImagePlugin
import sbt.{AutoPlugin, Def, taskKey}
trait Key {
val cloudflowImageName = taskKey[String]("The name of the Docker image to publish.")
}
object ImageNamePlugin extends AutoPlugin {
override def requires = ImagePlugin