- https://busterbenson.com/piles/cognitive-biases/
- https://busterbenson.com/biases/
- https://upload.wikimedia.org/wikipedia/commons/6/65/Cognitive_bias_codex_en.svg
- https://www.schoolofthought.org/
- https://yourbias.is/
- https://yourlogicalfallacyis.com/
- https://medium.com/@agkdesign/heuristicards-a-flash-deck-of-cognitive-bias-4dac372ac802
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 reducer = (oldState, action) => { | |
if (typeof action === "function") { | |
return action(oldState) | |
} else { | |
return action; | |
} | |
} | |
// useState is simplified useReducer | |
const useState = (initialState, init) => { |
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://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze | |
*/ | |
function deepFreeze<T>(object: T, path?: string): Readonly<T> { | |
const propNames = Object.getOwnPropertyNames(object); | |
let latest; | |
try { | |
for (const name of propNames) { | |
// @ts-ignore - do not verify implementation |
- nodejs/node#1128
- https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop
- https://github.com/YuzuJS/setImmediate
- http://jphpsf.github.io/setImmediate-shim-demo/
- https://gist.github.com/garybernhardt/29b564eeaaa0611faf7f53a3ffc9766e
- https://twitter.com/garybernhardt/status/1102374056177750016
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
// z85 alphabet - doesn't include ', ", \ | |
const alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#"; | |
const base = alphabet.length; | |
const base85 = input => { | |
const result = []; | |
do { | |
const remainder = input % base; | |
input = ~~(input / base); | |
result.push(alphabet[remainder]); | |
} while (input != 0); |
- https://github.com/19majkel94/type-graphql
- https://github.com/acro5piano/typed-graphqlify
- https://github.com/trojanowski/react-apollo-hooks
- https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts
- https://github.com/seek-oss/playroom#typescript-support
- https://github.com/YozhikM/stylelint-a11y
- https://kevinlynagh.com/notes/fast-cljs-react-templates/
- http://www.ccs.neu.edu/home/stchang/popl2017/
- http://www.ccs.neu.edu/home/stchang/pubs/ckg-popl2017.pdf
- http://www.cs.cmu.edu/~aldrich/papers/sac15-tsms.pdf
- https://oliviernicole.github.io/about_macros.html
- http://www.ccs.neu.edu/home/dherman/research/papers/esop08-hygiene.pdf
- https://docs.scala-lang.org/overviews/macros/typemacros.html
- https://github.com/lexi-lambda/hackett
- https://github.com/cyrus-/relit
- https://jaredforsyth.com/posts/template-based-macros-for-reason-ocaml/
NewerOlder