Just some notes and references for myself.
- In bash, you can access your
C:\
drive via/mnt/c/
~
=C:\Users\MLM\AppData\Local\lxss\home\mlm
and is different from your Windows user directoryC:\Users\MLM
#!/bin/bash | |
CLUSTERNAME=mycluster.mydomain | |
NAMESPACE=default | |
USERNAME=myclusteruser | |
GROUPNAME=mygroup | |
openssl genrsa -out ${USERNAME}.key 2048 | |
CSR_FILE=$USERNAME.csr |
/** | |
The Play (2.3) json combinator library is arguably the best in the scala world. However it doesnt | |
work with case classes with greater than 22 fields. | |
The following gist leverages the shapeless 'Automatic Typeclass Derivation' facility to work around this | |
limitation. Simply stick it in a common location in your code base, and use like so: | |
Note: ** Requires Play 2.3 and shapeless 2.0.0 | |
scala> case class F[M[_], T]() | |
scala> val tpe = typeOf[F[M, _] forSome { type M[_] }] | |
##### FIRST TRY | |
scala> val e = q"{ type Tata[T] = ({ type l[T] = $tpe[scala.concurrent.Future, T] })#l[T]; () }" | |
e: toolbox.u.Tree = | |
{ | |
type Tata[T] = scala.AnyRef { | |
type l[T] = F[_[_] <: Any, _][scala.concurrent.Future, T] |
#Transform web.config on build
</Project>
; v12.0 my change depending on your version of Visual Studio<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>True Trello Printer</title> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> | |
<style> | |
body{margin:15%;} | |
.panel-body{ |
/** | |
* Type class supporting access to the all elements of this `HList` for functions from type `U` ~(`U => V`). | |
* | |
* author of original HList Filter Alois Cochard | |
* | |
* @author Grigory Pomadchin | |
*/ | |
object am3 { | |
trait FuncFilter[L <: HList, U] extends DepFn1[L] { type Out <: HList } |
import com.hp.hpl.jena.rdf.model.ModelFactory | |
import scala.collection.JavaConversions._ | |
val m = ModelFactory.createOntologyModel | |
m.read("****INPUT****","N3") | |
val properties = (m.listDatatypeProperties.toList ++ m.listObjectProperties) | |
val individualRows = m.listIndividuals.toList.map(i => | |
i.getURI + ";" + properties. | |
map(p => i.listPropertyValues(p).toList.mkString(",")).mkString(";") |
package foo | |
import scala.util._ | |
import play.api._ | |
import play.api.data.validation.ValidationError | |
import play.api.libs.json._ | |
object Foo { |