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 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
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
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
| 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 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
| 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 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
| // 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 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
| { | |
| "editor.fontSize": 19, | |
| "editor.tabSize": 2, | |
| "editor.fontFamily": "'Roboto Mono', monospace", | |
| "editor.lineHeight": 28, | |
| "keyboard.dispatch": "keyCode" | |
| } |
NewerOlder