made with esnextbin
made with esnextbin
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
import {curryN, has, values, is} from 'ramda' | |
// given a error object from a third party source | |
// which may not guarantee structure | |
// quick search via recursion to find property | |
const err = { | |
system: { | |
status: { | |
err: { | |
response: 'boom', |
made with esnextbin
made with esnextbin
I hereby claim:
- I am davidchase on github.
- I am davidchase (https://keybase.io/davidchase) on keybase.
- I have a public key ASAfDVhu0aBOESksmS2lTCc72JlTvmlmn3hpj_Zt86ssEQo
To claim this, I am signing this object:
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
// http://www.webpackbin.com/EJxIbvTSW | |
import pull from 'pull-stream' | |
import {click /*, mouseover, pullEvent*/ } from './pull-dom-events' | |
const {filter, map, take, through, drain} = pull | |
const throughs = | |
pull( | |
filter(event => event.target.matches('.only-me')), | |
map(event => event.target.textContent), | |
through(data => console.count(data)), |
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 | |
function install { | |
printf "\e[92m[~] Name your project: \e[0m\n" | |
read name | |
printf "\e[33m[~] Downloading awesomeness...\e[0m\n" | |
git clone https://github.com/mostjs/package-starter $name \ |
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
// http://www.webpackbin.com/NyiticRzb | |
import {Stream} from 'most'; | |
import {change} from '@most/dom-event'; | |
const fromFileReader = (method, type, stream) => new Stream(new FileReaderSource(method, type, stream)); | |
class FileReaderSource { | |
constructor(method, type, stream) { | |
this.method = method; | |
this.type = type; |