项目作者: zelark

项目描述 :
Nano ID collision calculator
高级语言: Clojure
项目地址: git://github.com/zelark/nano-id-cc.git
创建时间: 2018-08-08T13:08:33Z
项目社区:https://github.com/zelark/nano-id-cc

开源协议:MIT License

下载


Nano ID Collision Calculator

Nano ID is a library for generating random IDs. Likewise UUID, there is a probability of duplicate IDs. However, this probability is extremely small.

Meanwhile, a lot of projects generate IDs in small numbers. For those projects, the ID length could be reduced without risk.

This calculator aims to help you realize the extent to which the ID length can be reduced.

Setup

First, you need to have Leiningen installed.

To minify CSS run:

  1. lein minify-assets

To get an interactive development environment run:

  1. lein figwheel

It will open your browser at localhost:3449/index.html.
This will auto compile and send all changes to the browser without the
need to reload.

To clean all compiled files:

  1. lein clean

To create a production build run:

  1. lein build

Acknowledgments

First of all, I would like to thank Andrey Sitnik — he is a role model for other developers to look up to (but drinking). Second, thank Alexey Komarov — its version of the calculator pushed me to make my own one. And my special thanks to Artem Alalykin who helped me with the math.

Also, thanks to all guys who helped me to review the interface.