Skip to content

Instantly share code, notes, and snippets.

View bloodyKnuckles's full-sized avatar

Jay Scott ANDERSON bloodyKnuckles

View GitHub Profile
const xs = xstream.default;
const { div, input, a, p, form, table, tbody, tr, td, makeDOMDriver } = CycleDOM;
function main (sources) {
const db$ = sources.DB
.filter(db => db.requests).map(db => db.requests)
.map(requests => {
return requests.filter(request => 'submitted' === request.status)
}).startWith([])

Keybase proof

I hereby claim:

  • I am bloodyKnuckles on github.
  • I am jayscottanderson (https://keybase.io/jayscottanderson) on keybase.
  • I have a public key whose fingerprint is DB19 BB5D F5B9 7411 203B 6F90 6390 A6B8 8082 0729

To claim this, I am signing this object:

@bloodyKnuckles
bloodyKnuckles / esnextbin.md
Created October 14, 2017 17:38
esnextbin sketch
@bloodyKnuckles
bloodyKnuckles / esnextbin.md
Last active September 19, 2017 23:20
esnextbin sketch
@bloodyKnuckles
bloodyKnuckles / wrapHTTP.js
Created August 16, 2017 19:22
cycle js HTTP wrapper, error handling
// Jan van Brügge @jvanbruegge
function wrapHTTP(http$) {
return http$
.map(res => res.replaceError(err => ({ type: 'left', value: err } as Either<Response, HTTPError>)))
.flatten()
.map(res => res.type === undefined ? { type: 'right', value: res } : res );
}
// mz3 @mz3
function wrapHTTP_Alt(http$) {
@bloodyKnuckles
bloodyKnuckles / esnextbin.md
Last active July 20, 2017 23:29
esnextbin sketch
@bloodyKnuckles
bloodyKnuckles / esnextbin.md
Last active July 6, 2017 14:54
esnextbin sketch

appState/visitors/count - onionify diagram implementation...made with esnextbin

@bloodyKnuckles
bloodyKnuckles / esnextbin.md
Last active July 6, 2017 14:47
esnextbin sketch
@bloodyKnuckles
bloodyKnuckles / esnextbin.md
Last active July 6, 2017 14:45
esnextbin sketch
@bloodyKnuckles
bloodyKnuckles / esnextbin.md
Last active July 6, 2017 14:54
esnextbin sketch

nested lenses: a, d, b...made with esnextbin