Skip to content

Instantly share code, notes, and snippets.


Jakub Liska l15k4

  • Pragmaxim
  • Prague, Czech Republic
View GitHub Profile

Easy Scala Publication

The following describes how you can publish artifacts for any sbt project using the GitHub Package Registry and the sbt-github-packages plugin.

Step 1: Create a GitHub Token

In your GitHub account, go to Settings > Developer settings > Personal access tokens, then click on Generate new token (or click here). Fill in some sort of meaningful name (I chose Dev) and click on the write:packages checkbox:

the new personal access token page with the above steps having been followed


Applied Functional Programming with Scala - Notes

Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x
alexandru /
Last active Apr 1, 2018
Task: A diverging design from Future and Scalaz Task
guenter / Main.scala
Last active Sep 17, 2020
A simple Mesos "Hello World": downloads and starts a Python web server on every node in the cluster.
View Main.scala
import mesosphere.mesos.util.FrameworkInfo
import org.apache.mesos.MesosSchedulerDriver
* @author Tobi Knaup
object Main extends App {
zziuni / stuns
Created Sep 18, 2012
STUN server list
View stuns
# source :
# A list of available STUN server.
okapies / Id.scala
Created May 27, 2012
How to implement case class manually. (for Scala 2.9.2 final)
View Id.scala
import scala.runtime.ScalaRunTime
* A sample code to implement a customized case class manually (for Scala 2.9.2 final).
* Id has two properties: name and displayName. 'displayName' has default value that
* is same value as 'name'.
class Id private ( // make primary constructor not to be accessible. (standard case class can do)