Skip to content

Instantly share code, notes, and snippets.

View brentropy's full-sized avatar

Brent Burgoyne brentropy

  • CHG Healthcare
  • Utah
View GitHub Profile
@brentropy
brentropy / .babelrc
Created September 28, 2015 03:18
Babel can use native generators instead of regenerator for async/await where supported (i.e. Node 4)
{
"blacklist": "regenerator",
"optional": "asyncToGenerator"
}

Keybase proof

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:

@brentropy
brentropy / package.json
Last active August 29, 2015 14:08
Example webpack build
{
"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"
},
@brentropy
brentropy / pascals-triangle.coffee
Created October 21, 2013 20:13
Pascal's Triangle in CoffeeScript
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
@brentropy
brentropy / pascals-triangle.js
Last active December 25, 2015 15:59
Pascal's Triangle in JavaScript
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]);