Release | 2.12 | 2.13 | 3.0.0 | Notes | |
---|---|---|---|---|---|
Atto | 0.9.5 | ✅ | ✅ | ✅ | |
Doobie (CE2) | 0.13.4 | ✅ | ✅ | ✅ | |
Doobie (CE3) | 1.0.0-M5 | ✅ | ✅ | ✅ | |
Natchez (CE2) | 0.0.26 | ✅ | ✅ | ✅ | EOL |
Natchez (CE3) | 0.1.3 | ✅ | ✅ | ✅ |
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
# AdAway default blocklist | |
# Blocking mobile ad providers and some analytics providers | |
# | |
# Project home page: | |
# https://github.com/AdAway/adaway.github.io/ | |
# | |
# Fetch the latest version of this file: | |
# https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt | |
# | |
# License: |
Let me know if you hear of any more and I'll update the list.
Hub/Provider | Registration URL |
---|---|
Bastrop | www.covac.info |
Bell | http://www.bellcountyhealth.org |
Gillespie | https://www.hillcountrymemorial.org/hill-country-covid/ |
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.io.ByteArrayInputStream | |
import java.security.PrivateKey | |
import java.security.PublicKey | |
import org.bouncycastle.jce.provider.BouncyCastleProvider | |
import org.bouncycastle.openpgp.operator.jcajce._ | |
import org.bouncycastle.openpgp._ | |
import scala.util.control.NonFatal | |
/** | |
* Methods to turn GPG ASCII-amored exported text into JCA keys. Many thanks to Twitter friends, |
Ok, so to map CITEXT
, which is not a standard type JDBC knows about, we need a wrapper class and need to move the value back and forth via the generic PGobject
data type.
import org.postgresql.util.PGobject
case class CIText(s: String)
object CIText {
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
sealed trait MaybeNumeric[A] | |
case class YesNumeric[A](n: Numeric[A]) extends MaybeNumeric[A] | |
case class NoNumeric[A]() extends MaybeNumeric[A] | |
object MaybeNumeric { | |
implicit def instance[A](implicit ev: Numeric[A]): MaybeNumeric[A] = | |
YesNumeric(ev) | |
} |
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 scalaz._, Scalaz._ | |
/** Abstraction over functions of the shape `A => F[A]`. */ | |
case class EndoT[F[_], A](run: A => F[A]) { | |
def apply(a: A): F[A] = | |
run(a) | |
def andThen(e: EndoT[F, A])(implicit ev: Bind[F]): EndoT[F, A] = | |
e.compose(this) |
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
// addCompilerPlugin("com.milessabin" % "si2712fix-plugin" % "1.2.0" cross CrossVersion.full) | |
import scalaz._, Scalaz._ | |
implicit def f2k[F[_], A, B](f: A => F[B]) = Kleisli(f) | |
val a: Int => ListT[List, Int] = { | |
case 0 => ListT(List(List(0, 1))) | |
case 1 => ListT(List(List(0), List(1))) | |
} |
EDIT: This gist has been promoted and is now a blog post.
Scala methods can have multiple lists of value parameters but only one list of type parameters, which is occasionally irritating when some are inferable and others are not. Consider this method which has two type parameters, one inferable and one not.
import scalaz._, Scalaz._
NewerOlder