This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Need to install gnu-sed. See here: https://formulae.brew.sh/formula/gnu-sed | |
find /path/to/directory -type f -exec gsed -i '1{/^$/d;}' {} + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const readline = require("readline"); | |
const boxen = require("boxen"); | |
const NUM_ROWS = 3; | |
const NUM_COLS = 3; | |
// Set up game loop | |
const rl = readline.createInterface({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SpeedTest(testImplement, testParams, repetitions){ | |
this.testImplement = testImplement; | |
this.testParams = testParams; | |
this.repetitions = repetitions || 10000; | |
this.average = 0; | |
} | |
SpeedTest.prototype = { | |
startTest: function(){ | |
var beginTime, endTime, sumTimes = 0; |