Show time between requests app.use((req, res, next) => { console.log(`${req.method} ${req.originalUrl} [STARTED]`); const getDurationInMilliseconds = (start) => { const NS_PER_SEC = 1e9; const NS_TO_MS =…
My journey to become a better developer
Show time between requests app.use((req, res, next) => { console.log(`${req.method} ${req.originalUrl} [STARTED]`); const getDurationInMilliseconds = (start) => { const NS_PER_SEC = 1e9; const NS_TO_MS =…
Allow website through vpn or link IP to a dns name: sudo pico /etc/hosts (add ip address and public name) List hidden files: ls -a…
function bar(x =2, …args ) : …args makes an array of all the rest of the arguments of the function function bar() { return foo(…[2,5])…
Container components : how things work (opposite = presentational) Presentational components: how things look. Opposite = container) Presentational vs container components Declarative: what should happen…
1. Create a react project with create react appcreating a new application or from scratch creating from scratch Decide whether or not you want to…
toString() strings parseInt(str), parseFloat(str) str.split(‘’), //returns array arrays arr.sort(), // returns array [2, 1, 2, 30, 12, 4,].sort(); // [1, 12, 2, 2, 30, 4]…
ReactComplex object dependency array use effectWhat if use effect dependency array change too oftenComplete guide to use effectUsereducer with loggerUsereducer vs redux vs useStateFrontendCompress imagesStorybook:…
Medium Hackernoon Frontend masters Pluralsight JS coack
Navigate to a nested tab navigator with a wrapper component in between (stack navigator > component > tab navigator) TabNavigator navigation={navigation} screenProps={{ rootNavigation: navigation }}…
Remove firefox dotted line from select select:-moz-focusring { color: transparent; text-shadow: 0 0 0 #000; }