Please see https://gist.github.com/nafg/6ecce298a0a20f1e4a259cdae5634060 instead
View RunBg.scala
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 kupasyomtov.igudbneitorah.scripts | |
import bleep.commands.Compile | |
import bleep.internal.{TransitiveProjects, jvmRunCommand} | |
import bleep.model.{CrossProjectName, ProjectName} | |
import bleep.{BleepFileWatching, BleepScript, Commands, FileWatching, PathOps, Started} | |
import java.io.File | |
import java.nio.file.Files | |
import scala.jdk.CollectionConverters.* |
View SlickMigration.scala
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 scala.concurrent.duration.Duration | |
import scala.concurrent.{Await, ExecutionContext} | |
import slick.dbio.DBIO | |
import org.flywaydb.core.api.migration.{BaseJavaMigration, Context} | |
abstract class SlickMigration extends BaseJavaMigration { | |
implicit val executionContext: ExecutionContext = ExecutionContext.global |
View GenerateBeanCaseClass.scala
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 java.beans.Introspector | |
import java.nio.file.{Files, Paths} | |
object GenerateBeanCaseClass extends App { | |
val typeRenderings = Map[Class[_], String]( | |
classOf[String] -> "String", | |
classOf[Boolean] -> "Boolean", | |
classOf[Int] -> "Int" | |
) |
View PartialState.scala
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 chesednow.requests.sjs | |
import japgolly.scalajs.react.Callback | |
import japgolly.scalajs.react.vdom.VdomNode | |
import cats.implicits._ | |
import monocle.{Iso, Prism} | |
trait PartialStateBase[V] { | |
type State |
View SlickMetaGenPlugin.scala
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 java.sql.Types | |
import scala.annotation.tailrec | |
import scala.concurrent.Await | |
import scala.concurrent.ExecutionContext.Implicits.global | |
import scala.concurrent.duration.Duration | |
import scala.meta._ | |
import slick.dbio.DBIO | |
import slick.jdbc.meta.{MColumn, MQName, MTable} |
View gist:2d37164b0b5501b417a6002dcaab4303
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
[1/547] mill.scalalib.ZincWorkerModule.compilerInterfaceClasspath | |
[2/547] mill.scalalib.ZincWorkerModule.classpath | |
[4/547] shared_common.js.upstreamCompileOutput | |
[5/547] shared_common.js.sources | |
[6/547] shared_common.js.generatedSources |
View paramCodec.scala
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 scala.language.experimental.macros | |
import scala.reflect.ClassTag | |
import io.circe.{Decoder, Encoder, Json} | |
import magnolia._ | |
class ParamEncoder[T](val underlying: Encoder[T]) extends AnyVal | |
trait ParamEncoderLowPriority { | |
type Typeclass[T] = ParamEncoder[T] |
View gen-instructions.sbt
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
val generateInstallInstructions = taskKey[Unit]("Generate install instructions in README.md") | |
generateInstallInstructions := { | |
val info = Def.task((projectID.value, description.value, (publish / skip).value)).all(ScopeFilter(inAnyProject)).value | |
val lines = | |
for ((moduleId, descr, noPublish) <- info.sortBy(_._1.name) if !noPublish) yield { | |
"// " + descr + "\n" + | |
s"""libraryDependencies += "${moduleId.organization}" %%% "${moduleId.name}" % "${moduleId.revision}"""" | |
} |
View groupme.sc
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 scala.util.{Failure, Success} | |
import $ivy.`io.circe::circe-core:0.12.3` | |
import $ivy.`io.circe::circe-generic:0.12.3` | |
import $ivy.`io.circe::circe-parser:0.12.3` | |
import io.circe.{Decoder, Encoder} | |
import io.circe.generic.auto._ | |
import io.circe.syntax._ | |
import io.circe.parser | |
import requests.BaseSession |
NewerOlder