- 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
View simplied.js
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) => { |
View biases and fallacies.md
View deepFreeze.ts
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 |
View task queue.md
- 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
View z85.js
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); |
View maps of ideas.md
Knowledge structure
- Maps, Graphs, Mind Maps
- Roadmap, curriculum
- Dictionary, encyclopedia
- Abstractions, analogy
- alphabet, building blocks
Maps
View swagger-graphql.md
GraphQL
- 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
View typed-macros.md
- 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