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
| ncu | |
| ncu -u | |
| npm install |
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
| new Date(2022,04,23).toLocaleString( 'en-US', { timeZoneName: 'short',timeZone:'America/Mexico_City' } ); | |
| // Para obtener la el time zone del browser | |
| Intl.DateTimeFormat().resolvedOptions().timeZone | |
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
| <div | |
| style={{ | |
| height: '100vh', | |
| width: '10px', | |
| background: 'red', | |
| position: 'fixed', | |
| left: 0, | |
| right: 0, | |
| margin: 'auto', | |
| top: 0, |
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
| export PYENV_ROOT="$HOME/.pyenv" | |
| export PATH="$PYENV_ROOT/bin:$PATH" | |
| if command -v pyenv 1>/dev/null 2>&1; then | |
| eval "$(pyenv init -)" | |
| fi | |
| eval "$(pyenv virtualenv-init -)" |
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
| function decimalToBinary(decimal){ | |
| return decimal.toString(2) | |
| } | |
| function decimalToHex(decimal){ | |
| return decimal.toString(16) | |
| } | |
| function hexToBinary(hex){ | |
| return hex.toString(2) | |
| } | |
| function hexToBinary(hex){ |
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
| Then('Subo un el archivo de tipo .xlsx', () => { | |
| // filename archivo localizado en cypress/fixtures/{fileName} | |
| Cypress.Commands.add('upload_file', (fileName, selector) => { | |
| return cy.get(selector).then((subject) => { | |
| // Cargamos el fixture que debe estar en cypress/fixtures/{fileName} y lo cargamos como un base64 | |
| return cy.fixture(fileName, 'base64').then((base64) => { | |
| // Base 64 a blob | |
| const blob = Cypress.Blob.base64StringToBlob( | |
| base64, | |
| 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' |
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
| <div> | |
| <div> | |
| <object | |
| data='https://pdfjs-express.s3-us-west-2.amazonaws.com/docs/choosing-a-pdf-viewer.pdf' | |
| type="application/pdf" | |
| width="500" | |
| height="678" | |
| > | |
| <iframe |