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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<button class="btn">Click Me</button>
<script src="index.js"></script>
</body>
@davidchase
davidchase / index.html
Created April 8, 2016 14:19
local forage
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<script src="index.js"></script>
</body>
</html>
@davidchase
davidchase / esnextbin.md
Last active April 8, 2016 20:25
esnextbin sketch
@davidchase
davidchase / esnextbin.md
Last active April 9, 2016 02:58
esnextbin sketch
@davidchase
davidchase / esnextbin.md
Created April 18, 2016 19:30
esnextbin sketch
@davidchase
davidchase / random-two-dice.elm
Last active May 23, 2016 19:05
Roll Two Dice Randomly
import Html exposing (div, img, button, text, Html)
import Html.App as App
import Html.Events exposing (onClick)
import Random exposing (generate, int)
import Array exposing (fromList, get)
import Maybe exposing (withDefault)
import Html.Attributes exposing (src)
import Platform.Cmd exposing (batch, none)
@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;
#!/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 / 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)),

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: