This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #WARNING: Use at your own risk. No warranties expressed or implied. YMMV. Drive responsibly. Eat healthy. | |
| #First, `cd` into the parent dir for all of your `sbt`/`maven` projects (I assume you have one of those) | |
| find "$(cd ..; pwd)" -type d -name "target" -exec sudo tmutil addexclusion -p {} + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ====== org.deeplearning4j.examples.feedforward.xor.XorExample | |
| o.n.n.NativeOps - Number of threads used for NativeOps: 4 | |
| Unable to guess runtime. Please set OMP_NUM_THREADS or equivalent manually. | |
| o.n.n.Nd4jBlas - Number of threads used for BLAS: 4 | |
| Number of parameters in layer 0: 12 | |
| Number of parameters in layer 1: 10 | |
| Total number of network parameters: 22 | |
| o.d.o.l.ScoreIterationListener - Score at iteration 0 is 0.2070610076189041 | |
| o.d.o.l.ScoreIterationListener - Score at iteration 100 is 0.01497031468898058 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2016-09-28 16:00:13,126 WARN org.reflections.Reflections - could not create Vfs.Dir from url. ignoring the exception and continuing | |
| org.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [file:/System/Library/Java/Extensions/libQTJNative.jnilib] | |
| either use fromURL(final URL url, final List<UrlType> urlTypes) or use the static setDefaultURLTypes(final List<UrlType> urlTypes) or addDefaultURLTypes(UrlType urlType) with your specialized UrlType. | |
| at org.reflections.vfs.Vfs.fromURL(Vfs.java:109) ~[reflections-0.9.10.jar:na] | |
| at org.reflections.vfs.Vfs.fromURL(Vfs.java:91) ~[reflections-0.9.10.jar:na] | |
| at org.reflections.Reflections.scan(Reflections.java:237) [reflections-0.9.10.jar:na] | |
| at org.reflections.Reflections.scan(Reflections.java:204) [reflections-0.9.10.jar:na] | |
| at org.reflections.Reflections.<init>(Reflections.java:129) [reflections-0.9.10.jar:na] | |
| at org.reflections.Reflections.<init>(Reflections.java:170) [reflections-0.9.10.jar:na] | |
| at org.deeplearni |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cats.data.Xor | |
| import freek._ | |
| sealed trait Account | |
| trait Repository { | |
| sealed trait Repo[A] | |
| case class Query(no: String) extends Repo[Xor[String, Account]] | |
| case class Store(account: Account) extends Repo[Xor[String, Account]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scalaz.Free | |
| sealed trait Account | |
| sealed trait RepoF[A] | |
| // he algebraic data types | |
| case class Query(no: String) extends RepoF[Account] | |
| case class Store(account: Account) extends RepoF[Unit] | |
| case class Delete(no: String) extends RepoF[Unit] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_79). | |
| Type in expressions for evaluation. Or try :help. | |
| scala> import cats.std.option._ | |
| import cats.std.option._ | |
| scala> import cats.std.list._ | |
| import cats.std.list._ | |
| scala> import freek._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scala> import frdomain.ch6.streams._ | |
| import frdomain.ch6.streams._ | |
| scala> import Main._ | |
| import Main._ | |
| scala> import akka.stream.scaladsl._ | |
| import akka.stream.scaladsl._ | |
| scala> import akka.stream._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Welcome to Scala version 2.11.7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_91). | |
| Type in expressions to have them evaluated. | |
| Type :help for more information. | |
| scala> import frdomain.ch6.streams._ | |
| import frdomain.ch6.streams._ | |
| scala> import Main._ | |
| import Main._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package net.debasishg.fin | |
| import org.joda.time.DateTime | |
| trait Account { | |
| def no: String | |
| def name: String | |
| def openedOn: DateTime | |
| def closedOn: Option[DateTime] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import concurrent.{ExecutionContext, Future => SFuture, Promise} | |
| import util.Try | |
| import _root_.scalaz.\/ | |
| import _root_.scalaz.concurrent.{Task => ZTask} | |
| object Task { | |
| def fromScala[A] |