Skip to content

Instantly share code, notes, and snippets.


Viktor Klang (√) viktorklang

View GitHub Profile
viktorklang /
Last active Oct 4, 2019
Check EntityDiscovery
viktorklang /
Last active Aug 26, 2019
Why I don't love Trunk Based Development?

Here's my personal opinions on feature-branches vs master-only development

Feedback comes late

This is not really true, Feedback comes in at various steps:

  • At Issue time, you can have a discussion about what is to be achieved and what the constraints are.
viktorklang /
Created Jul 16, 2019
Launcher script for Slack on macOS which warns you if you open if while on battery power
#!/usr/bin/env bash
if [[ $(pmset -g ps | head -1) =~ "Battery Power" ]]; then
osascript -e 'display notification "You are starting Slack while running on battery power" with title "Battery Drain Source Detected" subtitle ""'
open /Applications/
viktorklang /
Created Dec 19, 2018 — forked from fwbrasil/
Scala `Future` optimizations (8/8/2018 snapshot)

Scala Future optimizations

Flavio W. Brasil, July 2017


viktorklang / Instructions.txt
Created Oct 8, 2017
Try the latest Scala Future impl!
View Instructions.txt
First: Close all other applications, so that they don't interfere with the benchmark.
Second: Make sure that your computer is adequately cooled during the benchmark so it doesn't start thermal throttling.
Third: clone
Fourth: git checkout wip-optimizations-√
Fifth: start sbt
viktorklang / build.sbt
Created Mar 28, 2017 — forked from rubbish/build.sbt
Playing around with tagless final style and Eff (from
View build.sbt
scalaVersion := "2.11.8"
scalaOrganization := "org.typelevel"
libraryDependencies ++= Seq(
"org.typelevel" %% "cats" % "0.9.0",
"org.atnos" %% "eff" % "4.0.0"
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.3")
View StreamDeadlock.scala
object StreamDeadlock {
def main(args: Array[String]): Unit = {
import scala.concurrent._
implicit val system = ActorSystem()
val noFusingMaterializer = ActorMaterializer(ActorMaterializerSettings(system).withAutoFusing(false))
View BenchIt.scala
package ai
* Created by HamsterofDeath on 3/14/2017.
* Polished by √ on 3/14/2017
import java.text.DecimalFormat
import scala.util.Random

Keybase proof

I hereby claim:

  • I am viktorklang on github.
  • I am viktorklang ( on keybase.
  • I have a public key ASD8bMnlRJBBEHVUgA0_fuzExfoV__wn6K6teoI6d3QDKwo

To claim this, I am signing this object: