An open API service indexing awesome lists of open source software.

https://github.com/jdan/collatz.now.sh

generating SVGs from Collatz sequences
https://github.com/jdan/collatz.now.sh

Last synced: 5 months ago
JSON representation

generating SVGs from Collatz sequences

Awesome Lists containing this project

README

          

## collatz.now.sh

image

This generates SVGs for [Collatz](https://en.wikipedia.org/wiki/Collatz_conjecture) sequences. This technique comes from an excellent Numberphile video on the [Recamán sequence](https://www.youtube.com/watch?v=FGC5TdIiT9U),

It is written in OCaml, and compiled to JavaScript using [BuckleScript](https://bucklescript.github.io/) to be served with [Now](https://now.sh).

### Running

In dev you'll want to run `yarn watch` and `now dev` in two separate windows.

Then visit http://localhost:3000/api/collatz?num=123

### Deploying

`yarn deploy`