Skip to content

Instantly share code, notes, and snippets.

View davidchase's full-sized avatar
🐻
Working from home

David Chase davidchase

🐻
Working from home
View GitHub Profile
@davidchase
davidchase / esnextbin.md
Last active December 11, 2016 13:18
esnextbin sketch
@davidchase
davidchase / esnextbin.md
Last active December 10, 2016 16:21
esnextbin sketch
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',
@davidchase
davidchase / esnextbin.md
Created October 7, 2016 18:22
esnextbin sketch
@davidchase
davidchase / README.md
Last active October 14, 2016 15:17
Browser Test Runner Example
@davidchase
davidchase / esnextbin.md
Created September 26, 2016 15:45
esnextbin sketch

Keybase proof

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:

@davidchase
davidchase / index.js
Last active June 30, 2016 03:27
pull-stream for DOM events
// 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)),
#!/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 \
@davidchase
davidchase / most-fromFileReader.js
Last active May 25, 2016 15:45
FileReader API with most
// 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;