I hereby claim:
- I am brentburg on github.
- I am brentburg (https://keybase.io/brentburg) on keybase.
- I have a public key whose fingerprint is 4E63 FBB1 8EDD 08B7 39BA 1F15 13F4 4BCA 1D94 BE2F
To claim this, I am signing this object:
{ | |
"blacklist": "regenerator", | |
"optional": "asyncToGenerator" | |
} |
I hereby claim:
To claim this, I am signing this object:
{ | |
"name": "webpack-build-example", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "webpack-dev-server -d", | |
"build": "webpack -p", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, |
pascalsTriangle = (width) -> | |
set = [] | |
prev = pascalsTriangle(width - 1) if width > 1 | |
for i in [0...width] | |
if prev and prev[i-1] and prev[i] | |
set.push prev[i-1] + prev[i] | |
else | |
set.push 1 | |
console.log set.join(' ') | |
set |
var pascalsTriangle = function(width) { | |
var i = -1 | |
, set = [] | |
, prev; | |
if (width > 1) { | |
prev = pascalsTriangle(width - 1); | |
} | |
while (++i < width) { | |
if (prev && prev[i - 1] && prev[i]) { | |
set.push(prev[i - 1] + prev[i]); |