I hereby claim:
- I am everson on github.
- I am everson (https://keybase.io/everson) on keybase.
- I have a public key ASAsYPxrdc6JJE63Cbr0LQG_8jNZ77yj68vhdOKTd_1n9go
To claim this, I am signing this object:
| [ disruptor-http-inbound-1] c.r.d.g.s.e.HttpHandler - HttpHandler.handleHttpRequest | |
| [ disruptor-http-inbound-1] c.r.d.g.s.e.HttpHandler - HttpHandler.handleProcessable | |
| [ disruptor-http-inbound-1] .d.g.t.RequestTransmitter - RequestTransmitter.transmit | |
| [ disruptor-http-inbound-1] c.r.d.g.c.VertxHttpClient - VertxHttpClient.execute | |
| [ io-compute-8] c.r.d.g.c.VertxHttpClient - VertxHttpClient.execute.async | |
| [ io-compute-8] c.r.d.g.c.VertxHttpClient - VertxHttpClient.execute.async.map ip resolved | |
| [vert.x-eventloop-thread-2] c.r.d.g.c.VertxHttpClient - VertxHttpClient.execute.async.map.onSuccess | |
| [ io-compute-9] .d.g.t.RequestTransmitter - RequestTransmitter.transmit.map | |
| [ io-compute-9] uestTransmitterMarshaller - RequestTransmitterMarshaller.marshal | |
| [ io-compute-9] c.r.d.g.s.e.HttpHandler - HttpHandler.handleProcessable.unsafeRunAsync | 
I hereby claim:
To claim this, I am signing this object:
| import Html exposing (text) | |
| import Mouse exposing (position) | |
| main = (map text position) | 
| #!/bin/sh | |
| exec scala "$0" "$@" | |
| !# | |
| /* | |
| * Copyright (c) 2011-15 Miles Sabin | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | 
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console | 
| type Id = Int | |
| def insertA():Either[Exception, Id] = {println("running A"); Right(1)} | |
| def insertB(a: Id):Either[Exception, Id] = {println("running B with " + a); Left(new Exception("Oops"))} | |
| def insertC(b: Id):Either[Exception, Id] = {println("running C with " + b); Right(3)} | |
| for { | |
| a <- insertA().right | |
| b <- insertB(a).right | |
| c <- insertC(b).right | 
| import scalaz._ | |
| import Scalaz._ | |
| val isThisCool: Boolean @@ CoolStuff = Tag(true) | |
| def requiresCoolStuff(in: Boolean @@ CoolStuff) = in | |
| // type checks | |
| requiresCoolStuff(isThisCool) | 
| object BlackBox { | |
| def value = "Some content" | |
| } | 
| interface Array<T> { | |
| flatMap <U>( fn: (a:any) => Maybe<U>): Array<U>; | |
| // currently limited because I cannot write Array<T extends Maybe<Z>> and have flatten return Array<Z> | |
| flatten (): Array<any>; | |
| } | |
| // the runtime | |
| Array.prototype.flatMap = | |
| function <U>(fn: (a:any) => Maybe<U>):Array<U> { | |
| var res:Array<U> = []; | 
| // returns a new array where every object is the result of the passed function applied to corresponding element in the original array | |
| Array.prototype.map = function(fn){ | |
| var nArr=[]; | |
| for(i=0; i<this.length; i++){ | |
| nArr[i] = fn(this[i]) | |
| }; | |
| return nArr | |
| } | |
| // to use it, define a function taking one argument and processing it: |