Skip to content

Instantly share code, notes, and snippets.

@borgar
borgar / .block
Last active March 18, 2016 13:31
Tooth Eruption
license: gpl-3.0
height: 500
border: no
@borgar
borgar / .block
Last active June 27, 2022 21:03
Octopus
license: MIT
height: 578
border: no
@borgar
borgar / .block
Last active April 20, 2017 19:38
William Playfair's Price of Wheat
license: gpl-3.0
height: 515
border: no
@borgar
borgar / .block
Last active March 13, 2016 21:59
Slopegraph
license: gpl-3.0
height: 940
border: no
@borgar
borgar / .block
Last active April 3, 2024 16:47
PRS B1919+21
license: cc-by-nc-sa-4.0
height: 500
border: no
@borgar
borgar / .block
Last active March 9, 2016 12:53
Marey's Train Timetable
license: mit
height: 500
border: no
@borgar
borgar / .block
Last active March 8, 2016 22:03
Broad Street Pump
license: mit
height: 800
@borgar
borgar / .block
Last active March 28, 2020 11:57
Population pyramid
license: mit
height: 500
@borgar
borgar / keybase
Created October 1, 2014 18:58
Keybase ID
### Keybase proof
I hereby claim:
* I am borgar on github.
* I am borgar (https://keybase.io/borgar) on keybase.
* I have a public key whose fingerprint is 1964 9E49 702A CC81 3B14 14F0 5A96 CA4A A3F8 E964
To claim this, I am signing this object:
@borgar
borgar / uniroot.js
Last active December 28, 2022 02:08
JavaScript port of Brent's method
/**
* Searches the interval from <tt>lowerLimit</tt> to <tt>upperLimit</tt>
* for a root (i.e., zero) of the function <tt>func</tt> with respect to
* its first argument using Brent's method root-finding algorithm.
*
* Translated from zeroin.c in http://www.netlib.org/c/brent.shar.
*
* Copyright (c) 2012 Borgar Thorsteinsson <borgar@borgar.net>
* MIT License, http://www.opensource.org/licenses/mit-license.php
*