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
"pool-9-thread-13" #154 prio=5 os_prio=31 cpu=203855.82ms elapsed=397.24s tid=0x00007f9d97951000 nid=0x10807 runnable [0x0000700041d1c000] | |
java.lang.Thread.State: RUNNABLE | |
at scala.reflect.internal.Symbols$Symbol.caseFieldAccessors(Symbols.scala:2153) | |
at scala.tools.nsc.typechecker.SyntheticMethods.accessors$1(SyntheticMethods.scala:95) | |
at scala.tools.nsc.typechecker.SyntheticMethods.addSyntheticMethods(SyntheticMethods.scala:96) | |
at scala.tools.nsc.typechecker.SyntheticMethods.addSyntheticMethods$(SyntheticMethods.scala:70) | |
at scala.tools.nsc.Global$$anon$6.addSyntheticMethods(Global.scala:485) | |
at scala.tools.nsc.typechecker.Typers$Typer.finishMethodSynthesis(Typers.scala:1967) | |
at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1896) | |
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5951) |
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
case class Meal( | |
starter: Option[String], | |
main: String, | |
drinks: Seq[String], | |
tip: Option[Int] | |
) | |
val meals = Seq( | |
Meal( | |
starter = Some("Zucchini Fritters"), |
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
$ sbt run | |
[info] welcome to sbt 1.5.2 (AdoptOpenJDK Java 11.0.11) | |
[info] loading settings for project global-plugins from plugins.sbt ... | |
[info] loading global plugins from /Users/roberto_tyley/.sbt/1.0/plugins | |
[info] loading settings for project ophan-geoip-db-refresher-build from plugins.sbt ... | |
[info] loading project definition from /Users/roberto_tyley/code/ophan-geoip-db-refresher/project | |
[info] loading settings for project ophan-geoip-db-refresher from build.sbt ... | |
[info] set current project to geoip-db-refresher (in build file:/Users/roberto_tyley/code/ophan-geoip-db-refresher/) | |
[info] compiling 1 Scala source to /Users/roberto_tyley/code/ophan-geoip-db-refresher/target/scala-3.0.0/classes ... | |
[info] running ophan.geoip.db.refresher.CLIMain |
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
[info] Setting Scala version to 2.13.5 on 1 projects. | |
[info] Reapplying settings... | |
[info] set current project to scala-2-vs-3-noclassdeffounderror (in build file:/home/roberto/development/scala-2-vs-3-NoClassDefFoundError/) | |
[info] ExampleSpec: | |
[info] using Java Compress library | |
[info] - should not throw java.lang.NoClassDefFoundError | |
[info] Run completed in 302 milliseconds. | |
[info] Total number of tests run: 1 | |
[info] Suites: completed 1, aborted 0 | |
[info] Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0 |
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
roberto@kind:~/development/scaladex/scaladex$ docker -v | |
Docker version 20.10.6, build 370c289 | |
roberto@kind:~/development/scaladex/scaladex$ docker-machine -v | |
docker-machine version 0.16.0, build 702c267f | |
roberto@kind:~/development/scaladex/scaladex$ sbt | |
[info] welcome to sbt 1.4.6 (Ubuntu Java 11.0.10) | |
[info] loading global plugins from /home/roberto/.sbt/1.0/plugins | |
[info] loading settings for project scaladex-build from plugins.sbt ... | |
[info] loading project definition from /home/roberto/development/scaladex/scaladex/project | |
[info] compiling 2 Scala sources to /home/roberto/development/scaladex/scaladex/project/target/scala-2.12/sbt-1.0/classes ... |
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 com.danielasfregola.twitter4s | |
import java.net.URLEncoder | |
import akka.actor.ActorSystem | |
import akka.http.scaladsl.model.HttpRequest | |
import akka.http.scaladsl.model.headers._ | |
import akka.stream.{ActorMaterializer, Materializer} | |
import com.danielasfregola.twitter4s | |
import com.danielasfregola.twitter4s.entities.{AccessToken, ConsumerToken} |
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
$ sbt | |
[info] Loading global plugins from /home/roberto/.sbt/0.13/plugins | |
[info] Loading project definition from /home/roberto/guardian/marley/project | |
[info] Set current project to root (in build file:/home/roberto/guardian/marley/) | |
> release | |
[info] Starting release process off commit: d4f62deee5bb5dc8c10b741d2f0f069e90e48340 | |
[info] Checking remote [origin] ... | |
[info] Setting scala version to 2.12.4 | |
[info] Set current project to root (in build file:/home/roberto/guardian/marley/) | |
[info] Setting scala version to 2.11.12 |
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
$ sbt | |
[info] Loading global plugins from /home/roberto/.sbt/0.13/plugins | |
[info] Loading project definition from /home/roberto/guardian/marley/project | |
[info] Set current project to root (in build file:/home/roberto/guardian/marley/) | |
> release | |
[info] Starting release process off commit: 8aaa0454d4af2ae6ea610d1b540a166d022895c0 | |
[info] Checking remote [origin] ... | |
[info] Setting scala version to 2.12.4 | |
[info] Set current project to root (in build file:/home/roberto/guardian/marley/) | |
[info] Updating {file:/home/roberto/guardian/marley/}thriftExample... |
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
/*************************************************** | |
This is a library example for the MLX90614 Temp Sensor | |
Designed specifically to work with the MLX90614 sensors in the | |
adafruit shop | |
----> https://www.adafruit.com/products/1748 | |
----> https://www.adafruit.com/products/1749 | |
These sensors use I2C to communicate, 2 pins are required to | |
interface |
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
/* | |
Analog Input | |
Demonstrates analog input by reading an analog sensor on analog pin 0 and | |
turning on and off a light emitting diode(LED) connected to digital pin 13. | |
The amount of time the LED will be on and off depends on | |
the value obtained by analogRead(). | |
The circuit: | |
* Potentiometer attached to analog input 0 | |
* center pin of the potentiometer to the analog pin |