This file contains 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.kha.main | |
import cats.effect.{IO, IOApp} | |
import fs2.Stream | |
import com.kha.models.TaskManager | |
import cats.effect.kernel.Ref | |
object Main extends IOApp.Simple: | |
import TaskManager.Task |
This file contains 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 := "di-demo" | |
version := "0.0.1" | |
scalaVersion := "2.13.8" | |
Compile / scalacOptions ++= Seq( | |
"-deprecation", // Warning and location for usages of deprecated APIs. | |
"-encoding", | |
"utf-8", // Specify character encoding used by source files. |
This file contains 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.actor.typed.ActorSystem | |
import akka.actor.typed.scaladsl.Behaviors | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.model.HttpRequest | |
import scala.util.Success | |
import scala.util.Failure | |
import akka.http.scaladsl.common.EntityStreamingSupport | |
import spray.json._ | |
import DefaultJsonProtocol._ | |
import akka.stream.alpakka.json.scaladsl.JsonReader |
This file contains 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
version: "3.9" | |
services: | |
elasticsearch: | |
image: elasticsearch:7.16.3 | |
environment: | |
- discovery.type=single-node | |
expose: | |
- 9200 | |
- 9300 |
This file contains 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
version: "3.9" | |
services: | |
opensearch: | |
image: opensearchproject/opensearch:1.2.4 | |
environment: | |
- discovery.type=single-node | |
expose: | |
- 9200 | |
- 9600 |
This file contains 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
.rectangle { | |
width: 10em; | |
height: 10em; | |
} | |
.blue { | |
background-color: rgb(6, 152, 219); | |
-webkit-transition: background-color 1s; | |
-moz-transition: background-color 1s; | |
transition: background-color 1s; |
This file contains 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
'use strict'; | |
const path = require('path'); | |
let config = { | |
context: path.resolve(__dirname, 'src'), | |
target: 'electron', | |
entry: './index', | |
output: { | |
path: path.resolve(__dirname, 'built'), |