I hereby claim:
- I am ragb on github.
- I am ragb (https://keybase.io/ragb) on keybase.
- I have a public key ASBOe-uy2gdK_EnJUGodkpNoAkPes1I1uiSKvoXjipWoIwo
To claim this, I am signing this object:
import Dependencies._ | |
import Slides._ | |
lazy val root = (project in file(".")) | |
.settings( | |
inThisBuild(List( | |
organization := "co.enear", | |
scalaVersion := "2.12.8", | |
version := "0.1.0-SNAPSHOT", |
import Dependencies._ | |
import Slides._ | |
lazy val root = (project in file(".")). | |
settings( | |
inThisBuild(List( | |
organization := "co.enear", | |
scalaVersion := "2.12.7", | |
version := "0.1.0-SNAPSHOT", |
this is the content |
this is the content |
I hereby claim:
To claim this, I am signing this object:
// This is a natural number | |
trait Nat | |
{ | |
type N <: Nat | |
} | |
// This is Zero | |
class Zero extends Nat { | |
type N = Zero |
import slick.lifted._ | |
/** | |
* Utilities to process and modify queries based on option values. | |
* This are mostly syntax helpers. | |
*/ | |
object MaybeUtils { | |
implicit class MaybeExtensionMethods[E, U, C[_]](query: Query[E, U, C]) { | |
def maybeCompose[T](op: Option[T])(f: T => Query[E, U, C] => Query[E, U, C]) = { | |
op.map(o => f(o)(query)) getOrElse (query) |
<html> | |
<head> | |
<title>Scope example</title> | |
</head> | |
<body> | |
<!-- Buttons container --> | |
<div id="buttons"></div> | |
<script type="text/javascript"> | |
// Run this on window load event | |
// Three buttons are added to the buttons containr |
(function() { | |
console.log("hello from function"); | |
})(); |
<html> | |
<head> | |
<title>Scope example</title> | |
</head> | |
<body> | |
<!-- Buttons container --> | |
<div id="buttons"></div> | |
<script type="text/javascript"> | |
// Run this on window load event | |
// Three buttons are added to the buttons containr |