git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Fist try to access then cache, if it fails reach for the network.
Only access the cache... usually not a good strategy
Only access the network... usually not a good strategy but can be useful for assets that never changes
const dataArray = Object.keys(data).map(id => ({ | |
id, | |
...data[id], | |
})) |
const javDetails = detailsList.reduce((acc, detail) => { | |
let key = detail.childNodes[0].textContent | |
let value = detail.childNodes[1].textContent | |
return { ...acc, [key]: value } | |
}, {}) |
function sortListBy(Parameter, List) { | |
return List.sort((a, b) => { | |
if (a[Parameter] > b[Parameter]) { | |
return 1 | |
} else { | |
return -1 | |
} | |
}) | |
} |
const params = { a: 'foo', b: 'bar' }; | |
const urlParams = new URLSearchParams(Object.entries(params)); | |
fetch('/some/url?' + urlParams); |
background-color: #f5f5f5 nice to the eyes nice yellow : #ffc600 or #ffc40e nice gray: #222;
absolut path: /images/flower.png relative path: ./images/flower.png (or images/flower.png) or ../../images/flower.png