id - a75b39046c1dc8577ee6ce8e100c91c1
Niklas Luhmann - inventor of zettelkasten
id - a75b39046c1dc8577ee6ce8e100c91c1
Niklas Luhmann - inventor of zettelkasten
id - 8221b95996b98786920f966593ef7654
| // https://github.com/twitter/util | |
| object Programm extends App { | |
| import com.twitter.util.Eval | |
| type EntryConditionFunc = Map[String, String] => Boolean | |
| val eval = new Eval | |
| val func = eval[EntryConditionFunc]("""(ctx:Map[String, String]) => ctx("name") == "hello" """) |
In my case I used only 4 icons from http://fortawesome.github.io/Font-Awesome/ so it's not efficient to include the whole bunch of fortawesome files
At http://fontello.com/ selects required icons and export them.
Encode required font file (.eot .svg .woff .ttf) into base64
Linux example
| //https://github.com/debasishg/scala-snippets/blob/master/src/main/scala/endofluent.scala | |
| //http://debasishg.blogspot.com.au/2013/02/a-dsl-with-endo-monoids-for-free.html | |
| object Somescala extends App { | |
| // import endodsl._ | |
| // val now = Calendar.getInstance.getTime | |
| // val p = | |
| // project("xenos", now) { | |
| // for { | |
| // a <- task("study requirements") | |
| // b <- task("do analysis") |
| @tailrec | |
| def find[A](value:A, v:Vector[Vector[A]]):Option[A]={ | |
| v.head.find(_==value) match { | |
| case Some(i) => Some(i) | |
| case None if v.size==1 => None | |
| case None => find(value,v.tail) | |
| } | |
| } |
| package com.minosiants | |
| import akka.event.ActorEventBus | |
| import akka.event.LookupClassification | |
| import akka.actor.ActorSystem | |
| import akka.actor.Props | |
| import akka.actor.Actor | |
| import java.util.Date | |
| import java.util.UUID |