a place for me to stash random code puzzle solutions, like:
- advent of code | https://adventofcode.com
- everybody codes | https://everybody.codes
- leetcode https://leetcode.com
- project euler | https://projecteuler.net
NOTE: if you don't have yarn installed, you can replace yarn below with npm run, eg npm run new aoc 2028 1 some description here
you may need to run yarn fixNew to give the script permissions.
you may need to run yarn fixNew to give the script permissions.
to run only a specific set of tests, use .only modifer on any level of mocha block, eg
describe.only('the set of tests I want to run now', () => {
// tests here
})example output:
>> yarn notes
> @ notes /path/to/root
> ./node_modules/notes/bin/notes
* /path/to/utils/js/scaffoldCurrentDirectory.js
Line 40: ✓ TODO better error handling
Line 41: ✓ TODO this should have tests to expose what it does