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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . index.php [L] |
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
body { | |
font-family: Arial, Helvetica, sans-serif; | |
} | |
#app { | |
width: 700px; | |
margin: 0 auto; | |
} | |
#user-info { |
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
.container{ | |
display: flex; | |
height: 100vh; | |
background-color: #3b4055; | |
} | |
.panel{ | |
background-color: #2b2f42; | |
width: 20%; | |
padding: 10px 0; |
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
[{"title":"Tarjetas para laptop","price":"9000","quantity":"2","completed":false,"id":"6deae773-e871-4a2f-a45c-7bab58b1ccdc"},{"title":"Pan","price":"4","quantity":"5","completed":false,"id":"c28bf4f2-5b02-449c-a798-901c5a6b0eb9"},{"id":"a51f811f-8349-42f0-bd6d-6cc9e333a7f2","title":"amet tempor aute culpa aliquip proident","price":591.553,"quantity":16,"completed":true},{"id":"ff49efd9-0bc3-4e68-a88e-479c94b370ae","title":"tempor ipsum et est dolore occaecat","price":919.368,"quantity":10,"completed":true},{"id":"3cdca18b-d2db-4e68-82bf-066c1239391c","title":"sint do Lorem nulla exercitation culpa","price":297.143,"quantity":41,"completed":true},{"id":"e29033a3-7542-4c3d-8bcc-a90762e4b921","title":"fugiat proident cillum ad commodo ea","price":559.113,"quantity":74,"completed":false},{"id":"c7981570-ba25-47f3-9e68-4e28fef2b1e1","title":"ex esse minim pariatur culpa Lorem","price":560.205,"quantity":75,"completed":true},{"id":"8a56f182-9963-4e61-a8c9-7f4dbaadfdb3","title":"cupidatat non ipsum eu fugiat velit" |
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
function division(number1, number2){ | |
return parseInt(number1) / parseInt(number2); | |
} |
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
const p = new Promise((resolve, reject) =>{ | |
let x = 10; | |
if(x == 10){ | |
resolve('El valor de la variable es 10'); | |
}else{ | |
reject('Error: falló la validación'); | |
} | |
}); |
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
p | |
.then(res =>{ | |
console.log(res); | |
}); | |
.catch(error =>{ | |
console.error(error); | |
}); |
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
const p = new Promise((resolve, reject) =>{ | |
// cuerpo de la función | |
let x = 10; | |
if(x == 10){ | |
resolve('La variable es igual a 10'); | |
}else{ | |
reject('Error: no se cumplió la condición'); | |
} | |
}); |
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
const p = new Promise((resolve, reject) =>{ | |
// cuerpo de la función | |
}); |
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
// se inicializa la función con un nombre | |
console.time('proceso01'); | |
// se ejecuta el proceso o código que se quiere medir | |
// ... | |
// se detiene el contador | |
console.timeEnd('proceso01'); |
NewerOlder