Skip to content

Instantly share code, notes, and snippets.

View borismus's full-sized avatar

Boris Smus borismus

View GitHub Profile
function getBoundingBox(folded) {
const points = folded.vertices_coords.map(p => [p[0], p[1]]);
const boundary = ear.polygon(points);
return boundary.enclosingRectangle();
}
@borismus
borismus / readwise_to_markdown.py
Last active December 24, 2020 00:52
Download all Readwise highlights and save to them to plaintext markdown notes
#!/usr/bin/env python3
import datetime
import dateutil.parser
import json
import os
import requests
import sys
import time
import optparse

Keybase proof

I hereby claim:

  • I am borismus on github.
  • I am borismus (https://keybase.io/borismus) on keybase.
  • I have a public key ASAav9FGD3taYPCU9tStO2p1tgmNHuZFuFjHz44Jz_BWhgo

To claim this, I am signing this object:

ID Date Discovery / Invention Individual Location (Empire) Notes Deps Type (Discovery/Invention/Social/Technique) Soft/hard? Field URL
biped 4000000 BCE Bipedal species emerged https://en.wikipedia.org/wiki/Bipedalism#Evolution_of_human_bipedalism
stone-tool 2000000 BCE Stone tools used biped Invention https://en.wikipedia.org/wiki/Stone_tool
fire 500000 BCE Fire tamed stone-tool Invention https://en.wikipedia.org/wiki/Control_of_fire_by_early_humans
religion 200000 BCE Religion fire Social Soft https://en.wikipedia.org/wiki/Prehistoric_religion
art 20000 BCE Art stone-tool Social Soft https://en.wikipedia.org/wiki/Prehistoric_art
bow 20000 BCE Bows and arrows used stone-tool Invention War https://en.wikipedia.org/wiki/History_of_archery#Prehistory
oil-lamp 20000 BCE Oil lamps invented stone-tool Invention https://en.wikipedia.org/wiki/Oil_lamp
animal-dom 12000 BCE Animals domesticated Not horses. Maybe dogs and oxen? biped Technique Agriculture https://en.wikipedia.org/wi
ID Date Discovery / Invention Individual Location (Empire) Notes Deps Type (Discovery/Invention/Social/Technique) Soft/hard? Field
biped 4000000 BCE Bipedal species emerged
stone-tool 2000000 BCE Stone tools used biped Invention
fire 500000 BCE Fire tamed stone-tool Invention
religion 200000 BCE Religion fire Social Soft
art 20000 BCE Art stone-tool Social Soft
bow 20000 BCE Bows and arrows used stone-tool Invention War
oil-lamp 20000 BCE Oil lamps invented stone-tool Invention
animal-dom 12000 BCE Animals domesticated Not horses. Maybe dogs and oxen? biped Technique Agriculture
agriculture 8000 BCE Agriculture developed animal-dom Technique Agriculture
ID Date Discovery / Invention Individual Location (Empire) Notes Deps Type (Discovery/Invention/Social/Technique) Soft/hard? Field
biped 4000000 BCE Bipedal species emerged
stone-tool 2000000 BCE Stone tools used biped Invention
fire 500000 BCE Fire tamed Invention
religion 200000 BCE Religion Social Soft
art 20000 BCE Art Social Soft
bow 20000 BCE Bows and arrows used stone-tool Invention War
oil-lamp 20000 BCE Oil lamps invented stone-tool Invention
animal-dom 12000 BCE Animals domesticated Not horses. Maybe dogs and oxen? biped Technique Agriculture
agriculture 8000 BCE Agriculture developed animal-dom Technique Agriculture
@borismus
borismus / index.html
Last active July 30, 2023 09:34
Asimov's Chronology of Science and Discovery rendered as a tech tree
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<title>Tic-Tac-Toe Game Tree</title>
</head>
<body>
<script src="http://www.davidrobles.net/js/visualizing-game-trees-with-d3/underscore.js"></script>
<script src="http://www.davidrobles.net/js/visualizing-game-trees-with-d3/backbone.js"></script>
<script src="http://www.davidrobles.net/js/visualizing-game-trees-with-d3/d3.js"></script>
title participants
Exhalation
2-6

By Ted Chiang


It has long been said that air (which others call argon) is the source of life. This is not in fact the case, and I engrave these words to describe how I came to understand the true source of life and, as a corollary, the means by which life will one day end.

participants title
2-5
The Cartographer Wasps and the Anarchist Bees by E. Lily Yu

Short story time!


For longer than anyone could remember, the village of Yiwei had worn, in its orchards and under its eaves, clay-colored globes of paper that hissed and fizzed with wasps. The villagers maintained an uneasy peace with their neighbors for many years, exercising inimitable tact and circumspection. But it all ended the day a boy, digging in the riverbed, found a stone whose balance and weight pleased him. With this, he thought, he could hit a sparrow in flight. There were no sparrows to be seen, but a paper ball hung low and inviting nearby. He considered it for a moment, head cocked, then aimed and threw.

people
3-5

TODO: Finish inserting the separators, include discussion prompts.

Paper Menagerie

by Ken Liu