Skip to content

Instantly share code, notes, and snippets.

View softwarenerd's full-sized avatar
💭
I'm coding.

Brian Lambert softwarenerd

💭
I'm coding.
View GitHub Profile
@softwarenerd
softwarenerd / AllWords.txt
Created September 21, 2017 16:44
Every English word.
This file has been truncated, but you can view the full file.
a
aa
aaa
aah
aahed
aahing
aahs
aal
aalii
aaliis
@softwarenerd
softwarenerd / helperWords
Created September 21, 2017 16:42
Helper to read AllWords.txt and write out an array of words.
function helperWords() {
var lineReader = require('readline').createInterface({
input: require('fs').createReadStream('/Users/brian/Code/CertifiedTransfer/assets/AllWords.txt')
});
var lineNumber = 0;
lineReader.on('line', function (line) {
if (lineNumber == 0) {
console.log('const words = [')
@softwarenerd
softwarenerd / random-word.js
Last active September 21, 2017 15:03
Generates a random English word.
const words = [
'A',
'Aa',
'Aaa',
'Aah',
'Aahed',
'Aahing',
'Aahs',
'Aal',
'Aalii',