View firebaseSaveFile.js
const storage = require('@google-cloud/storage')
const createUuid = require("uuid-v4")
const credentials = require('./test-firebase-credentials.json')
const firebaseProjectName = 'test'
const bucketName = `${firebaseProjectName}.appspot.com`
const bucket = storage({ credentials }).bucket(bucketName)
module.exports = firebaseSaveFile
View keybase.md

Keybase proof

I hereby claim:

  • I am eecolor on github.
  • I am eecolor (https://keybase.io/eecolor) on keybase.
  • I have a public key whose fingerprint is AF78 4091 483A 8E95 E0F4 FE7F 103A 000A 62BA 9F9B

To claim this, I am signing this object:

View blue-green-services.sh
#!/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. #
View react without webpack.js
<!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>
View .bashrc
source ~/.git_sit_awareness.sh
View duck without actions.js
const ACTION = 'my-app/widgets/ACTION';
export default function reducer(state = {}, action = {}) {
switch (action.type) {
case ACTION:
return action.reduce(state)
default:
return state;
}
}
View commands.json
PUT /testindex
{
"settings": {
"number_of_replicas": 0,
"number_of_shards": 1
},
"mappings": {
"testtype": {
"dynamic": "strict",
"properties": {
View Option and categories
_ = magic
Option[A] = Some[A] | None
/*
O: Objects
A: Arrows
*/
O_00 = { _, X }
O_00 = { _ -> X }
View Party.scala
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)
View como.scala
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)