I hereby claim:
- I am przemek-pokrywka on github.
- I am przemekpokrywka (https://keybase.io/przemekpokrywka) on keybase.
- I have a public key ASBg_m-i2q5d06b9QdXWtWhLsVNydC_o6hwc83t6YpsPIgo
To claim this, I am signing this object:
//> using dep "dev.zio::zio:2.0.15" | |
//> using scala 2.13 | |
import zio._ | |
import java.time | |
import java.time.temporal.ChronoUnit | |
import java.time.{Instant, LocalDateTime, OffsetDateTime} | |
import java.util.concurrent.TimeUnit |
/// Powered by TSK - The Scripting Kit https://github.com/tsk-tsk/tsk-tsk 2> /dev/null \\\ | |
/* | |
export v=0.1.5 | |
. $(b=boot-tsk-$v u=git.io/$b; (cat ~/.tsk/$b || curl -sfL $u || wget -qO - $u) | sh) | |
scala_version=2.12.13 | |
bloop_version=1.4.11 | |
dependencies=' | |
com.h2database:h2:1.4.199 | |
io.getquill::quill-jdbc-zio:3.8.0 |
package $ivy | |
object `group::artifact:1` { | |
object `2` { | |
object `3` { | |
val exception = new Exception() | |
} | |
} | |
import $ivy.`group::artifact:1`.`2`.`3`.exception._ |
#!/bin/bash | |
usage() { | |
cat <<EOF | |
usage: git gone [-pldD] [<branch>=origin] | |
OPTIONS | |
-p prune remote branch | |
-n dry run: list the gone branches | |
-d delete the gone branches | |
-D delete the gone branches forcefully |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
trait valid_both_in_bash_and_in_scala /* 2>/dev/null | |
# ^^^ can be replaced by anything that's harmless in Bash and valid top-file-def in Scala. | |
# Kudos to that attendee (sorry, I don't know your name), who noticed that opportunity. Cheers! | |
# Making sure Coursier is available | |
cr=~/.coursier | |
test -e $cr/cr || (mkdir $cr && wget -q -O $cr/cr https://git.io/vgvpD && chmod +x $cr/cr) | |
dependencies=( | |
org.jsoup:jsoup:1.7.2 |
#!/bin/bash | |
test -e ~/.coursier/cr || (mkdir -p ~/.coursier && wget -q -O ~/.coursier/cr https://git.io/vgvpD && chmod +x ~/.coursier/cr) | |
CLASSPATH="$(~/.coursier/cr fetch -q -p \ | |
\ | |
com.typesafe.play:play-netty-server_2.11:2.5.0 \ | |
com.typesafe.play:play_2.11:2.5.0 \ | |
com.lihaoyi:ammonite-repl_2.11.7:0.5.2 \ | |
\ | |
)" java \ | |
-Dplay.crypto.secret=foo.bar.baz \ |
class Underscore: | |
def __getattr__(self, methodname): | |
return lambda *args, **kwargs: \ | |
lambda o: eval("o." + methodname)(*args, **kwargs) | |
_ = Underscore() | |
filter(_.startswith("A"), ["Africa", "America", "Europe"]) | |
map(_.upper(), ["hello", "world"]) | |
map(_.count("I"), ["TEAM", "TIM"]) |
package frp | |
import rx._ | |
import rx.ops._ | |
object Demo extends App { | |
case class Val[+T](value: T, reduced: Boolean = false) { | |
def toOpt = if (reduced) Some(value) else None | |
} |