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
/* | |
* Copyright 2020 Roberto Leibman | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
abstract class DBTFSuiteSetRunner() extends DefaultRunnableSpec { | |
val routes: Http[ApplicationLayer & ZEnv, Throwable, Request, Response[ApplicationLayer, Nothing]] = ??? | |
val zapp: ZIO[ApplicationLayer, | |
Throwable, | |
Http[ApplicationLayer & ZEnv, Throwable, Request, Response[ApplicationLayer, Nothing]]] = | |
for { | |
_ <- log.info("Initializing routes") | |
yield routes | |
} |
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 scala.util.matching.Regex | |
import squants.experimental.formatter.Formatter | |
import squants.experimental.unitgroups.UnitGroup | |
import squants.mass.{ Grams, Kilograms, Mass, Ounces, Pounds } | |
import squants.{ Dimensionless, DimensionlessUnit, Dozen, Each, Quantity, UnitOfMeasure } | |
package object cookingSquants { | |
private val mathContext: java.math.MathContext = new java.math.MathContext(3) | |
private val rangeRegex = "^([0-9\\s/./ ]+)(to|-)([0-9\\s/./ ]+)(.*)".r | |
private val singleNumRegex = "([0-9\\s/./]+)(.*)".r |
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 slickzio | |
import org.scalatest.{FlatSpec, Matchers} | |
import slick.basic.BasicBackend | |
import slick.dbio.DBIO | |
import slick.jdbc.{H2Profile, JdbcProfile} | |
import zio.internal.PlatformLive | |
import zio.{Runtime, ZIO} | |
class SlickZioSpec extends FlatSpec with Matchers { |
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 net.leibman.react | |
import chandu0101.scalajs.react.components.semanticui.{ SuiIcon, SuiIconType } | |
import japgolly.scalajs.react.vdom.html_<^._ | |
import japgolly.scalajs.react.{ BackendScope, Callback, Ref, ScalaComponent } | |
import scala.concurrent.duration.{ Duration, _ } | |
import scala.scalajs.js.timers._ | |
object HorizontalPosition extends Enumeration { |
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
/* | |
* Copyright 2018 Roberto Leibman | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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 components | |
import japgolly.scalajs.react.vdom.html_<^._ | |
import japgolly.scalajs.react.Callback | |
import japgolly.scalajs.react.BackendScope | |
import japgolly.scalajs.react.ScalaComponent | |
import scala.collection.immutable | |
import scalacss.ProdDefaults._ |
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 java.nio.ByteBuffer | |
import scala.util.Failure | |
import scala.util.Success | |
import scala.util.Try | |
import org.apache.commons.codec.binary.Hex | |
import org.jboss.netty.buffer.ChannelBuffers | |
import org.joda.time.DateTime | |
import org.joda.time.DateTimeZone |