Skip to content

Instantly share code, notes, and snippets.

View erikdonohoo's full-sized avatar

Erik Donohoo erikdonohoo

View GitHub Profile
@erikdonohoo
erikdonohoo / ordered-words.js
Last active August 29, 2015 14:20
Count words in file, order by highest count, limit by passed parameter
var word = /\b[a-zA-Z][a-zA-Z0-9\-']*\b/g;
var words = {};
var fs = require('fs');
var path = require('path');
function convert(str, amount) {
str = fs.readFileSync(path.join(__dirname, str), 'utf8');
while ((match = word.exec(str))) {
@erikdonohoo
erikdonohoo / keybase.md
Created January 24, 2015 02:15
keybase.md

Keybase proof

I hereby claim:

  • I am erikdonohoo on github.
  • I am brodeo23 (https://keybase.io/brodeo23) on keybase.
  • I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( ); }

To claim this, I am signing this object: