This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Nginx && Ubuntu 21.04</title> | |
| </head> | |
| <body> | |
| <h1>Nginx instalado correctamente gracias a Koda.es</h1> | |
| </body> | |
| </html> |
This file contains hidden or 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
| ... | |
| http { | |
| ... | |
| server_names_hash_bucket_size 64; | |
| ... | |
| } | |
| ... |
This file contains hidden or 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
| server { | |
| listen 80; | |
| listen [::]:80; | |
| root /var/www/tu_dominio; | |
| index index.html index.htm index.nginx-debian.html; | |
| server_name tu_dominio www.tu_dominio; | |
| location / { |
This file contains hidden or 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
| const generateRandomColor = () => { | |
| const colorNumber = Math.random() * 0xfffff * 100000; | |
| const colorString = colorNumber.toString(16); | |
| return '#' + colorString.slice(0, 6); | |
| }; | |
| console.log(generateRandomColor()); |
This file contains hidden or 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
| addOneDayToDate(date) { | |
| let newDate = new Date(); | |
| newDate.setDate(date.getDate() + 1); | |
| return newDate; | |
| } | |
| const date = new Date('2021-06-30'); |
This file contains hidden or 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
| const object = { | |
| 'like': 'Dale like si te ha gustado', | |
| 'comment': 'Comenta y dime que te ha parecido', | |
| 'share' : 'Comparte a quien le pueda interesar' | |
| } | |
| const { like, comment, share } = object; | |
| console.log(like, comment, share); |
This file contains hidden or 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
| //////////////// A帽adir //////////////// | |
| let array = [1, 2, 3, 4, 5]; | |
| array = [...array, 6]; | |
| let array = [1, 2, 3, 4, 5]; | |
| array.push(6); |
This file contains hidden or 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
| basic('Hola Mundo - Antes'); | |
| function basic(text) { | |
| return text; | |
| } | |
| basic('Hola Mundo - Despu茅s'); | |
| const arrowFunction = (text) => { |
This file contains hidden or 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
| if (condition) { | |
| console.log('Condici贸n es verdadera'); | |
| } | |
| else if (condition2) { | |
| console.log('Condici贸n no es verdadera pero Condici贸n2 si'); | |
| } | |
| else { | |
| console.log('Ni Condici贸n ni Condici贸n2 son verdaderas'); | |
| } |