This list is constantly updated and contains the books I remember I've read in the last years about computer science, web development, startups, economy, psychology, statistics, productivity, etc.
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
let urls = $('a').toArray().map(a => $(a).attr('href')) | |
let images = $('img').toArray().map(img => $(img).attr('src')) | |
let css = $('link[rel="stylesheet"]').toArray().map(css => $(css).attr('href')) | |
let js = $('script').toArray().map(js => $(js).attr('src')) |
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
import { CSSTransition as ReactCSSTransition } from 'react-transition-group' | |
import { useRef, useEffect, useContext } from 'react' | |
const TransitionContext = React.createContext({ | |
parent: {}, | |
}) | |
function useIsInitialRender() { | |
const isInitialRender = useRef(true) | |
useEffect(() => { |
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
// There area lot more checks in the Redux lib but this gets the point across. | |
function createStore(reducer, initialState) { | |
let currentState = initialState; | |
const listeners = []; | |
function getState() { | |
return currentState; | |
} | |
function subscribe(listener) { |
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
{ | |
"editor.fontSize": 19, | |
"editor.tabSize": 2, | |
"editor.fontFamily": "'Roboto Mono', monospace", | |
"editor.lineHeight": 28, | |
"keyboard.dispatch": "keyCode" | |
} |
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
Show hidden characters
{ | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
"plugins": [ | |
"html" |
NewerOlder