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
let getUser = (id, callback) => { | |
let user = { id, name: 'hans'}; | |
setTimeout( () => callback(user), 3000); | |
}; | |
getUser(31, (userObject) => console.log(userObject) ); | |
// Prints { id: 31, name: 'hans' } |
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
There are three simple (and similar) rules to remember: | |
* Don't start a new line with parentheses, | |
* don't start a new line with a bracket, | |
* don't start a new line with a backtick. | |
And that's it. |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
const warningTitleCSS = 'color:red; font-size:60px; font-weight: bold; -webkit-text-stroke: 1px black;'; | |
const warningDescCSS = 'font-size: 18px;'; |
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
# Notas | |
containerID # suficiente con los primeros 3 dijitos del id | |
-it # Modo iterativo | |
# Comprobar funcionamiento docker | |
docker -v | |
# o | |
docker version |