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
#!/bin/bash -e | |
#DEPLOY_SERVERS=(vm273 vm274) | |
#APP_NAME=via-autobeheer-app-test | |
#DIST=dist/ | |
#STATUS_CHECK_BASE=https://via-autobeheer-app-tst.firebaseio.com | |
#STATUS_CHECK_LOCATIONS=(/userData/status /token/status) | |
#SERVICES=(authentication-service userdata-service) | |
# .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo. # |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Firebase component lifecycle</title> | |
</head> | |
<body> | |
<div id="container" /> | |
<script src="../react/react.js"></script> | |
<script src="../react/react-dom.js"></script> |
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
source ~/.git_sit_awareness.sh |
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
const ACTION = 'my-app/widgets/ACTION'; | |
export default function reducer(state = {}, action = {}) { | |
switch (action.type) { | |
case ACTION: | |
return action.reduce(state) | |
default: | |
return state; | |
} | |
} |
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
PUT /testindex | |
{ | |
"settings": { | |
"number_of_replicas": 0, | |
"number_of_shards": 1 | |
}, | |
"mappings": { | |
"testtype": { | |
"dynamic": "strict", | |
"properties": { |
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
_ = magic | |
Option[A] = Some[A] | None | |
/* | |
O: Objects | |
A: Arrows | |
*/ | |
O_00 = { _, X } | |
O_00 = { _ -> X } |
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
object Party { | |
type Chocolate = Char | |
type Sticker = Any | |
def complain(c: Chocolate) = abort(s"You should have asked me if I wanted `$c`") | |
sealed trait Girl { | |
def willYouEat(c: Chocolate): VagueAnswer | |
def eat(c: Chocolate): (Rating, Girl) |
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 p { | |
object Test { | |
import construction.Monadic | |
import execution.Bimonad | |
def main(args: Array[String]): Unit = { | |
val expression = Monadic[List](10) flatMap (1 to _ toList) coflatMap (_.sum) |
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
trait Co[F[_], G[_]] { | |
case class Product[A](value: Either[F[A], G[A]]) | |
} | |
trait ProgramType[F[_]] | |
object ProgramType { | |
def apply[T](implicit to: ToParameterized[T]): ProgramType[to.Out] = ??? | |
} | |
trait ToParameterized[T] { |
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 test | |
import scala.language.implicitConversions | |
import scala.language.higherKinds | |
import scalaz.Free.FreeC | |
import scalaz.Free | |
import scalaz.Monad | |
import scalaz.Coyoneda |