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 cats.data.NonEmptyList | |
| import cats.effect.{Blocker, ConcurrentEffect, Sync} | |
| import cats.tagless.syntax.functorK._ | |
| import dev.profunktor.fs2rabbit.config.Fs2RabbitNodeConfig | |
| import dev.profunktor.fs2rabbit.config.declaration.{DeclarationExchangeConfig, DeclarationQueueConfig} | |
| import dev.profunktor.fs2rabbit.interpreter.RabbitClient | |
| import dev.profunktor.fs2rabbit.model.{AMQPChannel, ExchangeName, ExchangeType, QueueName} | |
| import distage.plugins.PluginConfig |
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
| @derive(config) | |
| final case class LogConfig(levels: Levels, options: Option[RenderingOptions], json: Boolean) | |
| object LogConfig { | |
| type Paths = Option[List[String]] | |
| implicit val renderingOptionsReader: ConfigReader[RenderingOptions] = deriveReader | |
| @derive(config) | |
| final case class Levels(trace: Paths, debug: Paths, info: Paths, warn: Paths, error: Paths, crit: Paths) |
Guides and learn
- https://docs.scala-lang.org/
- http://twitter.github.io/scala_school/ru/index.html
- https://twitter.github.io/effectivescala/index-ru.html
- https://www.scala-exercises.org/
- http://matt.might.net/articles/learning-scala-in-small-bites/
- https://www.youtube.com/channel/UC02ozRTMDnJtdcVGGy2o87Q/videos
- https://riptutorial.com/ru/scala/topic/216/%D0%BD%D0%B0%D1%87%D0%B0%D0%BB%D0%BE-%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D1%8B-%D1%81-%D1%8F%D0%B7%D1%8B%D0%BA%D0%BE%D0%BC-scala
- https://jto.github.io/articles/getting-started-with-shapeless/
- https://books.underscore.io/shapeless-guide/shapeless-guide.html
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
| const first = () => { | |
| let evaluation = prompt("Paste your expression to first") | |
| alert(eval(evaluation)) | |
| } | |
| // window.onload = first | |
| const second = () => { | |
| var i = 1 | |
| do { | |
| let repeat = prompt("Вы здесь?") |
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
| using System; | |
| using System.Text; | |
| using static TestApp.Program.DnaPath; | |
| namespace TestApp | |
| { | |
| class Program | |
| { | |
| internal enum DnaPath | |
| { |