A clean installation of Ubuntu 18.04.02 LTS was used.
This gist is an extension to the official docs, adding missing parts and instructions.
follow the pre-installation actions on:
const util = require('util') | |
console.log(util.inspect(myObject, {showHidden: false, depth: null})) | |
// alternative shortcut | |
console.log(util.inspect(myObject, false, null)) |
/* | |
* Convert the epoch (unix) timestamp to a readable format. | |
*/ | |
function formatDateTime(epochTimeStamp, callback) { | |
var d = new Date(epochTimeStamp * 1000); | |
var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; | |
var year = d.getFullYear(); | |
var month = months[d.getMonth()]; | |
var date = d.getDate(); | |
var hour = d.getHours(); |
Just run the script in your terminal like this... | |
node script-file.js > log-file.txt | |
This tells the shell to write the standard output of the command node script-file.js to your log file instead of the default, which is printing it to the console. | |
This is called redirection and its very powerful. Say you wanted to write all errors to a separate file... | |
node script-file.js >log-file.txt 2>error-file.txt | |
Now all console.log are written to log-file.txt and all console.error are written to error.txt |
A clean installation of Ubuntu 18.04.02 LTS was used.
This gist is an extension to the official docs, adding missing parts and instructions.
follow the pre-installation actions on:
The following steps are a guide to install TeXLive and the LaTeX-Workshop VS Code extension
latexmk
in the PATH for some reason..tex
file and use CTRL
+ALT
+b
to compile.