Skip to content

Instantly share code, notes, and snippets.

@ml10
ml10 / ScribeDoubleInfo.scala
Last active March 2, 2018 20:24
Double Info Logging with Scribe
package org.ml10
import scribe._
object ScribeDoubleInfo extends App {
debug("debug")
info("info")
configureLogging("org.ml10.ScribeDoubleInfo", false)
info("info")
debug("debug")
@ml10
ml10 / build.sbt.patch
Last active April 25, 2017 03:09
java.lang.NoClassDefFoundError: cats/free/Inject$
22:05 $ git diff
diff --git a/build.sbt b/build.sbt
index ed3e7bb..c220485 100644
--- a/build.sbt
+++ b/build.sbt
@@ -11,6 +11,7 @@ lazy val cats = (project in file("."))
dep("exercise-compiler"),
dep("definitions"),
%%("cats-core", "0.7.2"),
+ %%("cats-free", "0.7.2"),
@ml10
ml10 / .gitignore
Last active January 10, 2017 16:32 — forked from madan712/IPRangeChecker.java
More options for avoiding mutability in Scala
.idea
*.iml
out
target
.DS_Store
@ml10
ml10 / collection_init.java
Last active January 27, 2016 17:43 — forked from jmccance/collection_init.java
Overcoming Immutability in Scala
final List<String> fullNames = new ArrayList<>();
for (Name name : names) {
fullNames.add(String.format("%s %s", name.getFirst(), name.getLast()));
}