I hereby claim:
- I am oswaldo on github.
- I am oswaldo (https://keybase.io/oswaldo) on keybase.
- I have a public key ASALS2XNT73cN-g3GSRLZp92WNAPN2lcqb9ugn858pBlNwo
To claim this, I am signing this object:
""" | |
Automatically setup external monitors so that it's to the right of the | |
internal screen | |
Prerequisite: [displayplacer](https://github.com/jakehilborn/displayplacer) | |
```bash | |
brew tap jakehilborn/jakehilborn && brew install displayplacer | |
``` | |
""" |
//scala3 version in https://scastie.scala-lang.org/oswaldo/D18phCIFTzuH14BHLxKTNA/6 | |
object Collatz extends App { | |
val stop = BigInt(1) | |
def sequence(n: BigInt): Stream[BigInt] = Stream(n) #::: { | |
n match { | |
case `stop` => | |
println(s"$n, stopping") | |
Stream.empty[BigInt] | |
case step => sequence(if (n % 2 == 0) { |
package httputil | |
import java.io.OutputStreamWriter | |
import com.typesafe.scalalogging.Logger | |
import org.slf4j.MDC | |
import scala.collection.JavaConverters._ | |
import java.util.UUID | |
import java.time.Instant | |
import java.time.Duration | |
import scala.util.Either |
I hereby claim:
To claim this, I am signing this object:
//https://scalafiddle.io/sf/55sE0OL/10 | |
import scalatags.JsDom.all._ | |
import org.scalajs.dom | |
import fiddle.Fiddle.panel | |
val wpm = 300d | |
val group = 1 |
object WorkaroundTestRunner { | |
import junit.framework.JUnit4TestAdapter | |
import junit.textui.TestRunner | |
def main(args: Array[String]): Unit = { | |
TestRunner.run(new JUnit4TestAdapter(classOf[YourTestClass])) | |
println("Done!") | |
} | |
} |