Skip to content

Instantly share code, notes, and snippets.

View nerdybeast's full-sized avatar

Michael Penrod nerdybeast

View GitHub Profile
@nerdybeast
nerdybeast / index.js
Last active November 5, 2016 20:09
Euler 22 - Names Scores
'use strict';
const fs = require('fs');
const Score = require('./lib/score');
fs.readFile('./names.txt', 'utf8', (err, data) => {
if (err) throw err;
data = data.replace(/"/g, '').toUpperCase().split(',').sort();