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
- Host: GitHub
- URL: https://github.com/jdan/collatz.now.sh
- Owner: jdan
- Created: 2019-12-14T17:21:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-20T17:30:11.000Z (over 4 years ago)
- Last Synced: 2025-02-05T18:54:05.216Z (over 1 year ago)
- Language: OCaml
- Homepage: https://collatz.now.sh/123.svg
- Size: 27.3 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## collatz.now.sh

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`