I hereby claim:
- I am dstreet on github.
- I am dstreet (https://keybase.io/dstreet) on keybase.
- I have a public key ASAvnCiF_zOsJqFs2b6enAScivpRDOIfAHv03DFHBlVGzQo
To claim this, I am signing this object:
/* | |
* jQuery.backgroundCover.js | |
* -------------------------------------------------------- | |
* A polyfill for the background-size: cover CSS property. | |
* | |
* Copyright: David Street 2014 | |
*/ | |
(function($) { | |
var readline = require('readline'); | |
var TicTacToe = function(readline) { | |
/* | |
* Private API | |
* ------------------------------------------------------------------------ | |
*/ | |
var _rl = null |
syntax on | |
colorscheme itg_flat "https://github.com/cdmedia/itg_flat_vim | |
set number | |
set tabstop=4 | |
let g:netrw_liststyle=3 |
I hereby claim:
To claim this, I am signing this object:
import React from 'react' | |
/* | |
* Higher order component that passes `getInitialProps` through | |
* to the child component | |
*/ | |
const HOC = function(Child) { | |
return class Higher extends React.Component { | |
static getInitialProps(ctx) { | |
return Child.getInitialProps(ctx) |
const assert = require('assert') | |
const flatten = arr => arr.reduce((acc, el) => { | |
return acc.concat(Array.isArray(el) ? flatten(el) : el) | |
}, []) | |
assert.deepEqual(flatten([1, 2, 3, 4]), [1, 2, 3, 4]) | |
assert.deepEqual(flatten([1, [2, 3], 4]), [1, 2, 3, 4]) | |
assert.deepEqual(flatten([1, [2, [3]], 4]), [1, 2, 3, 4]) |