Skip to content

Instantly share code, notes, and snippets.

View damiani's full-sized avatar

Keith Damiani damiani

  • Tighten Co.
  • Charlottesville, VA
View GitHub Profile
@damiani
damiani / day-02.js
Last active December 4, 2020 13:41
Advent of Code, 2020
function parseInput(input) {
return input.split("\n");
}
function parseRow(val) {
let rule = val.replace(':', '').split(' ');
return {
low: rule[0].split('-')[0],
high: rule[0].split('-')[1],