New API
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
| // WHat is it? GraphQL | |
| It's a consistent way for your frontend to request data from your backend. It's beatufiul because the frontend sends a query | |
| which is in the same format as what the backend would return. Less ambiguity | |
| e.g requesting sandwitch from backend , a gql query may be: | |
| sandwidth { | |
| bread | |
| ham | |
| cheese | |
| } |
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
| dillinger.io |
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
| sudo chown -R $USER /usr/local/lib/node_modules |
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
| # upgraded node and needed to downgrade later | |
| nvm install 8.11.1 ( lower version) | |
| nvm use 8.11.1 ( to use the lower version) | |
| # expect this to work forward |
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
| # IIFE, destructuring, and spreading | |
| # given and object of colors | |
| const colors = {red: '#ff0000',green: '#00ff00', blue: '#0000ff' } | |
| # We can remove blue without using a filter by doing this | |
| ((blue, ...rest) => rest)(colors) |
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
| 1. https://itnext.io/how-to-use-github-desktop-with-gitlab-cd4d2de3d104 |
(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
| Key/Command | Description |
|---|---|
| Tab | Auto-complete files and folder names |
| Ctrl + A | Go to the beginning of the line you are currently typing on |
| Ctrl + E | Go to the end of the line you are currently typing on |
| Ctrl + U | Clear the line before the cursor |
| Ctrl + K | Clear the line after the cursor |
| Ctrl + W | Delete the word before the cursor |
| Ctrl + T | Swap the last two characters before the cursor |