Skip to content

Instantly share code, notes, and snippets.

View urcadox's full-sized avatar

Alexandre Berthaud urcadox

View GitHub Profile

Keybase proof

I hereby claim:

  • I am urcadox on github.
  • I am urcadox (https://keybase.io/urcadox) on keybase.
  • I have a public key whose fingerprint is 7C92 56D4 AB89 2A42 1D0F FDBF F19E 634D 4F24 A5C7

To claim this, I am signing this object:

alter table records
add constraint cname_single_record_per_name_a
exclude using gist (name with =, "type" with <>)
where ("type" IN ('A', 'CNAME'));
@urcadox
urcadox / StuffUsingTimedFutures.scala
Created January 5, 2022 14:42
Tool to print future timing in Scala
object StuffUsingTimedFutures {
def slowFuture(): Unit = {
val future = Future {
Thread.sleep(1000)
}
TimedFuture(future).printTime("foo")
}
}