Skip to content

Instantly share code, notes, and snippets.

Viktor Klang (√) viktorklang

Block or report user

Report or block viktorklang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@viktorklang
viktorklang / specformat.md
Last active Oct 4, 2019
Check EntityDiscovery
@viktorklang
viktorklang / TBD-feedback.md
Last active Aug 26, 2019
Why I don't love Trunk Based Development?
View TBD-feedback.md

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
viktorklang / SlackLauncher.sh
Created Jul 16, 2019
Launcher script for Slack on macOS which warns you if you open if while on battery power
View SlackLauncher.sh
#!/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 ""'
fi
open /Applications/Slack.app
@viktorklang
viktorklang / doc.md
Created Dec 19, 2018 — forked from fwbrasil/doc.md
Scala `Future` optimizations (8/8/2018 snapshot)
View doc.md

Scala Future optimizations


Flavio W. Brasil, July 2017

Problem


@viktorklang
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 https://github.com/viktorklang/scala-futures/
Fourth: git checkout wip-optimizations-√
Fifth: start sbt
@viktorklang
viktorklang / build.sbt
Created Mar 28, 2017 — forked from rubbish/build.sbt
Playing around with tagless final style and Eff (from https://github.com/edmundnoble/final-tagless-typelevel-summit)
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 akka.actor._
import akka.stream._
import akka.stream.scaladsl._
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
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

You can’t perform that action at this time.