Skip to content

Instantly share code, notes, and snippets.

View beaugunderson's full-sized avatar
type type type

Beau Gunderson beaugunderson

type type type
View GitHub Profile

gender statistics for aws re:invent 2014

totals

spreadsheet here, culled from the videos here

  • 245 presentations
  • 231 all male presentations (94.29%)
  • 4 all female presentations (1.63%)
  • 10 presentations with men and women (4.08%)
@beaugunderson
beaugunderson / cool-modules.md
Last active February 2, 2023 19:58
cool modules from nodeconf

from streams session

  • end-of-stream - specify a callback to be called when a stream ends (which is surpsingly hard to get right)
  • duplexify - compose a Duplex stream from a Readable and a Writable stream
  • pump - pipe streams together and close all of them if one of them closes
  • pumpify - combine an array of streams into a single duplex stream using pump and duplexify
  • through2 - tools for making Transform streams
  • from2 - tools for making Readable streams

from "participatory modules" session

@beaugunderson
beaugunderson / user-style.css
Last active October 26, 2015 12:50
hamburger-buttons
.navbar-toggle {
background-image: url(http://i.imgur.com/NBCwtIw.png);
background-position: center;
background-size: 90%;
background-repeat: no-repeat;
}
'use strict';
var Benchmark = require('benchmark');
var emojis = require('emojilib');
var nearley = require('nearley');
var emojiGrammar = require('./parsers/emoji.js');
var pegjs = require('pegjs-import');
var pegjsEmoji = pegjs.buildParser('./parsers/emoji.pegjs');
var _ = require('lodash');
var request = require('request');
var cheerio = require('cheerio');
var fs = require('fs');
console.log('retrieving unicode table...');
request.get('http://unicode.org/emoji/charts/full-emoji-list.html', function (err, response, body) {
console.log('loading data...');
var $ = cheerio.load(body);
# improving the format/structure of the code
# 🌹
# improving performance
# 🐎
# writing docs
# 📝
# fixing a bug
# 🐛
# removing code or files
# 🔥
@beaugunderson
beaugunderson / index.js
Created August 8, 2016 18:56
requirebin sketch
var _ = require('lodash');
var a = ['meow', 'kittens','birthday_pants'];
var b = ['kittens', 'pants'];
function comparator(x, y) {
return x.indexOf(y) !== -1 || y.indexOf(x) !== -1;
}
var intersection = _.intersectionWith(a, b, comparator);
var Rhyme = require('rhyme-plus').Rhyme;
var sentenceTools = require('sentence-tools');
var Twit = require('twit');
var _ = require('lodash');
var T = new Twit(botUtilities.getTwitterAuthFromEnv());
var rhyme = new Rhyme();
function syllables(line) {
@beaugunderson
beaugunderson / index.js
Created August 14, 2016 00:13
requirebin sketch
var ip = require('ip-address');
var address = new ip.Address6('1:2:3:4::/64');
document.write('<pre>');
document.write(address.startAddress().correctForm());
document.write('\n');
document.write(address.endAddress().correctForm());
document.write('</pre>');
@beaugunderson
beaugunderson / index.js
Last active October 29, 2016 06:10
requirebin sketch
var parsimmon = require('parsimmon');
function lexeme(parser) {
return parser.skip(parsimmon.optWhitespace);
}
var Keyword = parsimmon.alt(
parsimmon.string('appt'),
parsimmon.string('provider'),
parsimmon.string('hba1c')