Skip to content

Instantly share code, notes, and snippets.

@tklepzig
tklepzig / bookmarklet.js
Last active August 20, 2021 09:24 — forked from hraban/bookmarklet.js
Expand all resolved conversations on a GitHub PR
(() => {
document.querySelector('[data-disable-with^=Loading]')?.click();
setTimeout(() => document.querySelectorAll('.Details-content--closed').forEach(x => x.click()), 4000)
})()
@tklepzig
tklepzig / currying.md
Created March 5, 2019 15:11 — forked from donnut/currying.md
TypeScript and currying

TypeScript and currying

In functional programming you often want to apply a function partly. A simple example is a function add. It would be nice if we could use add like:

var res2 = add(1, 3); // => 4

var add10To = add(10);
var res = add10To(5); // => 15