Skip to content

Instantly share code, notes, and snippets.

@nickloewen
nickloewen / bret_victor-reading_list.md
Last active August 9, 2026 20:58
Bret Victor’s Reading List

This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.


Highly recommended things!

This is my five-star list. These are my favorite things in all the world.

A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★

@cuth
cuth / debug-scroll.md
Last active January 20, 2026 00:22
Find the elements that are causing a horizontal scroll. Based on http://css-tricks.com/findingfixing-unintended-body-overflow/

Debug Horizontal Scroll

(function (d) {
    var w = d.documentElement.offsetWidth,
        t = d.createTreeWalker(d.body, NodeFilter.SHOW_ELEMENT),
        b;
    while (t.nextNode()) {
        b = t.currentNode.getBoundingClientRect();
 if (b.right > w || b.left < 0) {
@iangreenleaf
iangreenleaf / gist:b206d09c587e8fc6399e
Last active August 1, 2026 05:57
Rails naming conventions

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

@skatenerd
skatenerd / bird_wadler.txt
Last active June 16, 2024 11:41
A gem from Bird and Wadler's Introduction to Functional Programming
"A good way to tackle such problems is to consider a simpler problem first.
There is, of course, no guarantee that solutions obtained for simpler problems
can be used directly in the problem which inspired them; they may only serve
to familiarise the solver with some of the features and difficulties involved.
Even so, the work is not wasted; familiarity with a problem is one of our most
important tools for solving it. And often we will be able to use the solution
directly or by adapting it."
!!!
@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active September 22, 2026 12:46
Vanilla JavaScript Quick Reference / Cheatsheet
@vakila
vakila / LilLambda.ipynb
Last active September 13, 2025 05:57
Anjana Vakil, "Mary had a little lambda", OSCON 2018 (https://conferences.oreilly.com/oscon/oscon-or/public/schedule/detail/67384) & EuroPython 2017 (https://youtu.be/7BsfMMYvGaU)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active September 10, 2026 17:11
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@RobertAKARobin
RobertAKARobin / python.md
Last active September 17, 2026 14:23
Python Is Not A Great Programming Language
@geordyjames
geordyjames / eslint_prettier_airbnb.md
Last active October 27, 2025 08:29
VSCode - ESLint, Prettier & Airbnb Setup for Node.js Projects

VSCode - ESLint, Prettier & Airbnb Setup for Node.js Projects

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-config-airbnb-base eslint-plugin-node eslint-config-node