Skip to content

Instantly share code, notes, and snippets.

@tindzk
tindzk / ZipArchive.scala
Last active July 24, 2018 13:55 — forked from Swind/ZipArchive.scala
Unzip file
object ZipArchive {
def unZip(source: File, targetFolder: File): Unit = {
val zipFile = new ZipFile(source)
try
zipFile.entries.asScala.foreach { entry =>
val target = new File(targetFolder, entry.getName)
if (entry.isDirectory) target.mkdirs()
else {
target.getParentFile.mkdirs()
val in = zipFile.getInputStream(entry)
@tindzk
tindzk / Monokai.colorscheme
Last active November 23, 2015 23:22 — forked from wdullaer/Monokai.colorscheme
Monokai Konsole Colourscheme
[Background]
Color=40,40,40
[BackgroundIntense]
Color=40,40,40
[Color0]
Color=73,72,62
[Color0Intense]