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
## How to hide API keys from github ## | |
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while | |
retaining your commits: https://help.github.com/articles/remove-sensitive-data/ | |
2. In the terminal, create a config.js file and open it up: | |
touch config.js | |
atom config.js |
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
/* ====================================== | |
CSS Reset | |
https://dev.to/hankchizljaw/a-modern-css-reset-6p3 | |
Box sizing rules | |
========================================= */ | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} |
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
// https://www.algoexpert.io/questions/Two%20Number%20Sum | |
// Solution 1 | |
function twoNumberSum(array, targetSum) { | |
let arr = array; | |
let target = targetSum; | |
let pairedNumbers = []; | |
for (let i = 0; i < array.length; i++) { |
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
## Node | |
node_modules | |
# General | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon |
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 MyCard = (props) => { | |
const { item } = props; | |
const defaultImgUrl = 'path to image' | |
const handleError = (event) => { | |
event.target.src = defaultImgUrl; | |
}; | |
return ( | |
<div> | |
<h1>item.name</h1> |