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
| // source: https://docs.cypress.io/guides/tooling/IDE-integration#Triple-slash-directives | |
| //The simplest way to see IntelliSense when typing a Cypress command or assertion is to add a triple-slash directive to the head of your JavaScript or TypeScript testing file. This will turn the IntelliSense on a per file basis. Copy the comment line below and paste it into your spec file. | |
| /// <reference types="Cypress" /> | |
| //your code.... |
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
| // Source: https://docs.cypress.io/guides/references/best-practices#Selecting-Elements | |
| // 1 - Add attribute data-cy="the_name_you_want" to the element that you want to select | |
| // 2 - Use [data-cy='the_name_you_want'] | |
| // html | |
| <button id="main" class="btn btn-large" data-cy="submit">Submit</button> | |
| // my-test.cy.js | |
| cy.get('[data-cy="submit"]').click() |
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
| # Source: https://linuxhandbook.com/export-command/ |
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
| # Source https://stackoverflow.com/a/18539913/359927 | |
| # Git doesn't ignore tracked files. You need to delete that file from the repository before it will be ignored: | |
| git rm -r Index | |
| git commit -m "Deleting 'Index' folder." | |
| # This will remove the files. If you only want to remove them from the index use --cached: | |
| git rm -r --cached Index | |
| # This will keep all files in the file-system and only removes them from git. |
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
| npx react-native start |
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
| # npx react-native-init [ProjectName] | |
| npx react-native-init RNNoExpo | |
| or | |
| npm install -g react-native-cli | |
| react-native init [ProjectName] |
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
| _ |
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
| { | |
| // Place your snippets for typescriptreact here. Each snippet is defined under a snippet name and has a prefix, body and | |
| // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
| // same ids are connected. | |
| // Example: | |
| // "Print to console": { | |
| // "prefix": "log", | |
| // "body": [ | |
| // "console.log('$1');", |
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
| # source https://stackoverflow.com/questions/52961824/run-gatsby-with-docker-compose | |
| # docker run -p 8000:80 -v $(pwd):/app -w [WORKDIR PATH] [IMAGE ID] yarn develop-docker | |
| docker run -p 8000:80 -v $(pwd):/app -w /app fe9a4b9e181a yarn develop |
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
| # Source https://stackoverflow.com/a/56904912/3599272 | |
| # rom API 1.35+ you can use the -w (--workdir) option: | |
| docker run -v $(pwd):/app -p 8000:8000 -w /app fe9a4b9e181a yarn develop |