Skip to content

Instantly share code, notes, and snippets.

View csaltos's full-sized avatar

Carlos Saltos csaltos

View GitHub Profile
@csaltos
csaltos / AddressConverter.scala
Created May 3, 2023 04:11
MongoDB Scala converter using ReactiveMongo for reading and writing custom data
package com.myconverter
import reactivemongo.api.bson.BSONDocument
import reactivemongo.api.bson.BSONDocumentReader
import reactivemongo.api.bson.BSONDocumentWriter
import scala.util.Try
case class Address(
line1: String,
module ReviewConfig exposing (config)
{-| Do not rename the ReviewConfig module or the config function, because
`elm-review` will look for these.
To add packages that contain rules, add them to this review project using
`elm install author/packagename`
when inside the directory containing this file.
package com.tutorial1;
import org.apache.kafka.clients.consumer.*;
import org.apache.kafka.common.errors.WakeupException;
import org.apache.kafka.common.serialization.StringDeserializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.time.Duration;
import java.util.Collections;