Assuming that you already have WSL
installed in your windows.
- update Ubutu to it's latest version. Don't if you already have.
sudo
is equivalent to running asadministrator
sudo apt-get update
const express = require('express'); | |
const exphbs = require('express-handlebars'); | |
app.engine('.hbs', exphbs({extname: '.hbs'})); | |
app.set('view engine', '.hbs'); | |
// Now you can use `.hbs` as file extension for express-handlebars |
Initialize Git: git init
et everything ready to commit: git add .
et custom file ready to commit: git add index.html
ommit changes: git commit -m "Message"
ommit changes with title and description: git commit -m "Title" -m "Description..."
show dbs
: Show all the databases.
use <database>
: switch/move into a database.
show collections
: Show all the collections in that database.
db.<collection>.find()
: Show all documents in the collection.
db.<collection>.help()
: Show help on collection methods.
db.<collection>.drop()
: Drops or removes completely the collection.
db.<collection>.deleteMany()
: Delete documents from the collection.
db.dropDatabase()
: Deletes a database.
// Inverts the integers of an array | |
const invert = arr => arr.map(n => -n); | |
invert([2,-5]); //=> [-2,5] |
I hereby claim:
To claim this, I am signing this object:
const uptime = new Date(Math.floor(process.uptime()) * 1000).toISOString().substr(11, 8) |
ctrl+b+"
= Splits the window horizantally
ctrl+c+%
= Splits the window vertically
ctrl+d
= Drop the current pane
ctrl+b+<arrows>
= to switch between pages
ctrl+b+z
= Zoom in and out in the current pane
ctrl+b+c
= Create a new window
ctrl+b+p
= Go to the previous window
ctrl+b+n
= Go to the next window \