This file contains 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
(async () => { | |
let latestWin = await latest('.exe'); | |
let latestMac = await latest('.pkg'); | |
if (!latestMac) { | |
latestMac = await latest('.dmg'); | |
} | |
console.log('WIN', latestWin); | |
console.log('MAC', latestMac); | |
})(); |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
body { | |
display: flex; | |
flex-direction: column; |
This file contains 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
frontmatter | |
bodymatter | |
backmatter | |
volume | |
division | |
preamble | |
landmarks | |
loi | |
loa | |
lot |
This file contains 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
const path = require('path'); | |
const fs = require('fs'); | |
let logEntries = []; | |
let logs = fs.readdirSync('./logs'); | |
let logfile = log => path.join(__dirname, 'logs', log); | |
logs.map(log => { | |
let filename = logfile(log); | |
console.log(`Processing ${filename}`); |