This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mywatch | |
import org.scalajs.dom | |
import dom.document | |
import outwatch.Sink | |
import scala.scalajs.js.JSApp | |
import outwatch.dom._ | |
import outwatch.util.Store | |
import scala.scalajs.js.annotation.JSExportTopLevel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project> | |
... | |
<profiles> | |
<profile> | |
<id>local</id> | |
<build> | |
... | |
<plugins> | |
... | |
<plugin> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "noresolve" | |
version := "1.0" | |
scalaVersion := "2.11.8" | |
offline := true | |
updateOptions := updateOptions.value.withCachedResolution(true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Wrapper { | |
def apply[A,B](before:A=>A,fn:A=>B,after:B=>B):A=>B = { | |
def wrapped(a:A):B = { | |
after(fn(before(a))) | |
} | |
return wrapped | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by sam on 17/09/15. | |
*/ | |
object PrimaEsercitazione { | |
def main(args: Array[String]) { | |
println("Distance test:") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package astrm | |
import akka.actor.ActorSystem | |
import kamon.Kamon | |
object GetStarted extends App { | |
Kamon.start() | |
val someHistogram = Kamon.metrics.histogram("some-histogram") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kamon | |
{ | |
system-metrics { | |
sigar-enabled = false | |
#jmx related metrics are enabled by default | |
jmx-enabled = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akka { | |
loglevel = INFO | |
} | |
# Kamon Metrics | |
# ~~~~~~~~~~~~~~ | |
kamon { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package astrm | |
import java.io.File | |
import akka.actor.ActorSystem | |
import akka.stream.io.Framing | |
import akka.stream.scaladsl.{Sink, Source} | |
import akka.stream.{ActorMaterializer, OverflowStrategy} | |
import akka.util.ByteString |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Sticks { | |
def main(args: Array[String]): Unit = { | |
val input: Array[Int] = args.map(_.toInt) | |
val sticks = new Sticks | |
sticks.cutSticks(input) | |
} | |
} |