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
| code --install-extension amatiasq.sort-imports | |
| code --install-extension christian-kohler.npm-intellisense | |
| code --install-extension CoenraadS.bracket-pair-colorizer-2 | |
| code --install-extension DotJoshJohnson.xml | |
| code --install-extension dsznajder.es7-react-js-snippets | |
| code --install-extension eamodio.gitlens | |
| code --install-extension EditorConfig.EditorConfig | |
| code --install-extension erichbehrens.pull-request-monitor | |
| code --install-extension esbenp.prettier-vscode | |
| code --install-extension formulahendry.auto-rename-tag |
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 get = (obj, path, defaultValue) => { | |
| const result = path.reduce((xs, x) => (xs && xs[x]) ? xs[x] : null, obj); | |
| if(result === null) { | |
| return defaultValue; | |
| } | |
| return result; | |
| } | |
| const props = { |
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
| /* ********** CHOOSE YOUR PATH ************ */ | |
| /* The purist */ | |
| function Component({ color }) { | |
| // JS way | |
| return ( | |
| <div className={css({ color: 'red' })}>hi</div> | |
| ) | |
| // CSS way | |
| return ( | |
| <div className={css(`color: red`)}>hi</div> |
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
| { | |
| repository(name: "ProductFulfillment", owner: "OneTechLP") { | |
| name | |
| pullRequests(last: 20, states: OPEN) { | |
| edges { | |
| node { | |
| url | |
| changedFiles | |
| author { | |
| login |
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 count = (cards) => { | |
| const aces = cards.filter(x => x === 'A') | |
| const withoutAces = cards.filter(x => x !== 'A') | |
| const sortedCards = [...withoutAces, ...aces] | |
| return sortedCards.reduce((sum, card) => { | |
| return sum += cardValue(card, sum) | |
| }, 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
| { | |
| "actionHolder": [ | |
| { | |
| "id": 4600815, | |
| "engineCode": "4HNAY2.0", | |
| "transmissionCode": "AUTOMATIC", | |
| "intervalMileage": 12000, | |
| "intervalMonth": 30, | |
| "frequency": 4, | |
| "action": "Inspect", |
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
| { | |
| "actionHolder": [ | |
| { | |
| "id": 2137971, | |
| "engineCode": "4INAG2.7", | |
| "transmissionCode": "ALL", | |
| "intervalMileage": 100000, | |
| "intervalMonth": 120, | |
| "frequency": 4, | |
| "action": "Flush/replace", |
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
| { | |
| "id": "authentication", | |
| "initial": "fetchingQuestions", | |
| "states": { | |
| "fetchingQuestions": { | |
| "on": { | |
| "SUCCESS": "inProgress", | |
| "ERROR": "failedToFetchQuestions", | |
| "MAX_ATTMEPTS": "terminal" | |
| } |