Skip to content

Instantly share code, notes, and snippets.

@rostfrei
rostfrei / frap.c
Last active March 28, 2019 20:16
How to convert floats to human-readable fractions
/*
** find rational approximation to given real number
** David Eppstein / UC Irvine / 8 Aug 1993
**
** With corrections from Arno Formella, May 2008
**
** usage: a.out r d
** r is real number to approx
** d is the maximum denominator allowed
**
@rostfrei
rostfrei / 0_reuse_code.js
Created April 10, 2017 06:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console