$ docker run -it --name nodejs-alpine --rm alpine:3.10
--name -> giving custom name
gcap() { | |
git add . && git commit -m "$*" && git push | |
} | |
# NEW. | |
gnew() { | |
gcap "📦 NEW: $@" | |
} | |
# IMPROVE. |
const a = item => new Promise(resolve => setTimeout(() => resolve(item), 10)) | |
const b = item => new Promise(resolve => setTimeout(() => resolve(item), 100)) | |
const c = item => new Promise(resolve => setTimeout(() => resolve(item), 200)) | |
// Parallel | |
const parallel = async () => { | |
const processes = [a(), b(), c()] | |
const [output1, output2, output3] = await Promise.all(processes) | |
return `parallel is done: ${output1} ${output2} ${output3}` |
Historically, in order to host website for a company they usually contact server/hardware providers to setup a sever farm. But this way had some serious down sides
By default React is a JavaScript library for building user interfaces
In React, for routing we have to use third party libraries for handling various features like for routing we might use react-router-dom.
{ | |
"workbench.iconTheme": "material-icon-theme", | |
"files.autoSaveDelay": 5000, | |
"editor.wordWrap": "off", | |
// "editor.fontFamily": "'SF Mono','Fira Code','Operator Mono','Monolisa','Cascadia Code','JetBrains Mono', 'monospace', 'Droid Sans Fallback','Segoe Ui Emoji','Noto Color Emoji'", | |
"workbench.colorCustomizations": { | |
// "editorGutter.addedBackground": "#141A1F", | |
// "editorGutter.modifiedBackground": "#141A1F", | |
// "editorGutter.background": "#141A1F" |