I hereby claim:
- I am msimav on github.
- I am msimav (https://keybase.io/msimav) on keybase.
- I have a public key whose fingerprint is D695 1150 BEF6 FE60 9B4B CFDA 8402 B7F8 0816 DD31
To claim this, I am signing this object:
import $ivy.`org.jsoup:jsoup:1.13.1` | |
import $ivy.`org.xerial:sqlite-jdbc:3.34.0` | |
import java.sql._ | |
import org.jsoup.Jsoup | |
import ammonite.ops._ | |
import scala.util.Using | |
import scala.collection.JavaConverters._ |
#/usr/bin/env bash | |
mandatory_binaries=( "java" "javac" ) | |
for mandatory_binary in "${mandatory_binaries[@]}" | |
do | |
if ! type "$mandatory_binary" > /dev/null; then | |
echo "Please install $mandatory_binary" | |
exit | |
fi |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
if [[ "$(git remote)" != "origin" ]]; then | |
echo "I can't handle more 1 one remote right now. Sorry" | |
exit 1 | |
fi | |
REPO="$(git remote -v | awk '/push/{ print $2 }' | sed 's/\.git$//' | sed 's!git@!https://!' | sed 's!\.com:!.com/!')" | |
BRANCH="$(git rev-parse --abbrev-ref HEAD)" | |
URL="$REPO/compare/$BRANCH?expand=1" |
@inline def Safely[T](block: => T): Either[Exception, T] = | |
try { | |
Right(block) | |
} catch { | |
case e: Exception => Left(e) | |
} | |
object Example { | |
val result = Safely { |
import language.experimental.macros | |
import reflect.macros.blackbox.Context | |
object MacroExample { | |
def debug(param: Any): String = macro debug_impl | |
def debug_impl(c: Context)(param: c.Expr[Any]): c.Expr[String] = { | |
import c.universe._ | |
val paramRep = show(param.tree) |