Skip to content

Instantly share code, notes, and snippets.

@bc-luke
bc-luke / classpath.scala
Last active May 18, 2020 03:33 — forked from jessitron/gist:8376139
scala: print all URLs on classpath
def urlses(cl: ClassLoader): Array[java.net.URL] = cl match {
case null => Array()
case u: java.net.URLClassLoader => u.getURLs() ++ urlses(cl.getParent)
case _ => urlses(cl.getParent)
}
val urls = urlses(getClass.getClassLoader)
println(urls.filterNot(_.toString.contains("ivy")).mkString("\n"))
@bc-luke
bc-luke / keybase.md
Last active September 16, 2019 04:32
Keybase proof

Keybase proof

I hereby claim:

  • I am bc-luke on github.
  • I am bc_luke (https://keybase.io/bc_luke) on keybase.
  • I have a public key ASAqMSZUa9DJhXLKXHqTDuFw58qjnSG34DI5M_5qyV4ulAo

To claim this, I am signing this object: