Skip to content

Instantly share code, notes, and snippets.

Avatar
type type type

Beau Gunderson beaugunderson

type type type
View GitHub Profile
@beaugunderson
beaugunderson / index.js
Created Aug 14, 2016
requirebin sketch
View index.js
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>');
View syllables.js
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) {
View index.js
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);
View git commit template
# improving the format/structure of the code
# 🌹
# improving performance
# 🐎
# writing docs
# 📝
# fixing a bug
# 🐛
# removing code or files
# 🔥
View emoji.js
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);
View benchmark.js
'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');
@beaugunderson
beaugunderson / user-style.css
Last active Oct 26, 2015
hamburger-buttons
View user-style.css
.navbar-toggle {
background-image: url(http://i.imgur.com/NBCwtIw.png);
background-position: center;
background-size: 90%;
background-repeat: no-repeat;
}
@beaugunderson
beaugunderson / cool-modules.md
Last active Aug 29, 2016
cool modules from nodeconf
View cool-modules.md

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

View aws-reinvent-2014-gender.md

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%)
View recruiter-interaction.md

a recent recruiter interaction I had

since I took the time to write up a long answer to this recruiter's questions I figured I could also share it with the world at large (and yes, it's kind of a rant-y mess but I didn't want to edit it after the fact)

(also: I'm a little torn about sharing this because on the one hand I think it's important for recruiters/companies & marginalized people looking for work to know that people care about this and are speaking up about it, and on the other hand I'm very conscious about having my own ego tied up in publicly being a "good person", so to mitigate that: I probably still do lots of awful things I shouldn't, and I acknowledge that I don't deserve any cookies for this because speaking up about it is basically the minimum anyone should be doing in this situation)

unsolicited email from a recruiter I've never met/talked to

Subject: Is ESLint Overrated?