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 io.scalaland.chimney.dsl._ | |
import org.scalatest.funsuite.AnyFunSuite | |
import org.scalatest.matchers.should.Matchers | |
class TransformationTest extends AnyFunSuite with Matchers { | |
sealed trait A extends Product with Serializable | |
object A { | |
case class Foo(s: String) extends A | |
case class Bar(kvs: Map[String, Int]) extends A |
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.io.{InputStream, OutputStream} | |
import com.amazonaws.services.lambda.runtime.{Context, RequestStreamHandler} | |
import com.softwaremill.sttp._ | |
import io.circe.Json | |
import io.circe.generic.auto._ | |
import io.circe.parser._ | |
import io.circe.syntax._ | |
class JiraDiscord extends RequestStreamHandler with Helpers { | |
override def handleRequest(input: InputStream, output: OutputStream, context: Context): Unit = { | |
val logger = context.getLogger |
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
<!DOCTYPE html> | |
<html lang="en-us"> | |
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script> | |
<meta charset="utf-8"> | |
<title>Picking Up the Camera with a Gallery</title> | |
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.Try | |
/** | |
* Type-safe UUID wrapper that encodes the type it relates to. This class explicitly hides its | |
* UUID value to prevent converting it between types. | |
*/ | |
class UUID[A] private(private val uuid: UUID.Raw) { | |
override def toString = uuid.toString | |
} |
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 io.fury.Fury | |
import io.fury.config.Language | |
import org.junit.Test | |
import org.scalatest.Assertions._ | |
import java.io.ByteArrayInputStream | |
import java.io.ByteArrayOutputStream | |
import java.util.Base64 | |
import java.util.zip.GZIPInputStream | |
import java.util.zip.GZIPOutputStream |
OlderNewer