Display useful information about the different commands available. If we need more information about an specific command, type:
# Where [command] can be any of the available commands
go help [command]
const moment = require('moment'); | |
const regularDate = moment() // ? | |
const regularDateString = regularDate.format('YYYY-mm-DD HH:ss'); // ? | |
const utcDate = moment.utc() // ? | |
const utcString = utcDate.format('YYYY-mm-DD HH:ss') //? | |
// transforming regular to UTC | |
console.log(moment.utc(regularDate).format('YYYY-mm-DD HH:ss')) // ? |
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"target": "es6", | |
"checkJs": true, | |
"resolveJsonModule": true, | |
"esModuleInterop": true, | |
}, | |
"exclude": ["node_modules"] | |
} |
The intl package supports a broad range of date formatting patterns. Here's a list (taken from the official docs):
DAY d
ABBR_WEEKDAY E
WEEKDAY EEEE
ABBR_STANDALONE_MONTH LLL
STANDALONE_MONTH LLLL
NUM_MONTH M
NUM_MONTH_DAY Md
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
{ | |
"compilerOptions": { | |
"target": "es2015", | |
"allowSyntheticDefaultImports": true, | |
// why set module property https://github.com/Microsoft/vscode/issues/73118#issuecomment-488252519 | |
"module": "commonjs", | |
"checkJs": true | |
}, | |
"exclude": ["node_modules"] | |
} |
(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {
git stash list
git stash push -m "message"
git stash apply stash@{0}