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

https://github.com/devonchurch/shortbread-biscuit

An application that allows a user to investigate every New Zealand Lotto result in detail
https://github.com/devonchurch/shortbread-biscuit

antd demo react research statistics typescript webworkers

Last synced: 15 days ago
JSON representation

An application that allows a user to investigate every New Zealand Lotto result in detail

Awesome Lists containing this project

README

          

# Shortbread Biscuit 🍰 🍞 🍪 😋

[![code style prettier](https://img.shields.io/badge/code_style-prettier-FF69A4.svg)](https://prettier.io/) [![commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![typescript](https://user-images.githubusercontent.com/15273233/40872275-a61d4660-669f-11e8-8edf-860f1947759f.png)](https://www.typescriptlang.org/)

## What 👋

An application that allows a user to investigate every [New Zealand Lotto](https://mylotto.co.nz/) result in detail.

- 📊 _Balls_ are compartmentalised into their specific _draw_ order and then ranked by _frequency_.

- 🎛 A _**"Most Frequent"**_ section is also generated by aggregating all drawn _ball_ frequencies regardless of _draw_ order.

- ⚖ _Ball_ combinations are ranked by _size_ and _frequency_ regardless of ball order.

- 📋 _Draws_ are ranked in sequential order. This is a great way to cross reference _**combinations**_ and _ball_ _**frequencies**_.

## Demo 👀

#### You can view an [interactive demo here](https://devonchurch.github.io/shortbread-biscuit/) 😊

### Web Worker

As of release `v1.1.0` [Web Workers](https://caniuse.com/#feat=webworkers) are used to shift CPU heavy computation onto another thread 🎉

The workers progress is streamed back to the main application thread and an real time indicator is shown to the user ⏱

![combination-progress](https://user-images.githubusercontent.com/15273233/51363636-cf83ff00-1b3d-11e9-9093-9508ed31ba49.gif)

### Custom Selection

Users can select specific _ball_ numbers and observe their influence over the entire _draw_ spectrum.

![lotto-selection](https://user-images.githubusercontent.com/15273233/51363633-ceeb6880-1b3d-11e9-8101-ab44d25be817.gif)

### Time Periods

The _draw_ records can also be time sliced to better understand how certain _ball_ numbers rank at different periods in time.

![lotto-time](https://user-images.githubusercontent.com/15273233/51363635-ceeb6880-1b3d-11e9-95f5-49f7f91b9ca7.gif)

## Installation 🤖

- Clone this repository

```
git clone https://github.com/devonChurch/shortbread-biscuit.git && cd shortbread-biscuit
```

- Install project dependencies

```
nvm use && npm i
```

- Start a development server on [Port 3000](http://localhost:3000/)

```
npm start
```

## Deployment 🏁

- Create a _Production_ build

```
nvm run build
```

- Deploy application to `gh-pages`

```
nvm run deploy
```

## License 📜

MIT