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 main | |
import ( | |
"fmt" | |
"time" | |
"github.com/samber/lo" | |
lop "github.com/samber/lo/parallel" | |
) |
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
// Sample config (with sqlite backend) | |
truerss { | |
port = 8000 | |
host = localhost | |
wsPort = 8080 | |
update-parallelism = 10 | |
db { | |
backend = sqlite | |
port = "" | |
host = "" |
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
import akka.io.IO | |
import akka.actor.{ActorSystem, Props} | |
import spray.can.Http | |
object Boot extends App { | |
implicit val system = ActorSystem("rest") | |
val restService = system.actorOf(Props[RestApiService], "rest-api") |
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 Main extends App { | |
@wrap def method(s: String): Option[Int] = s match { | |
case x if x == "1" => 1 | |
case x if x == "2" => 2 | |
} | |
println(method("1")) | |
println(method("2")) | |
println(method("3")) |