Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kant01ne/interview-test
https://github.com/kant01ne/interview-test
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kant01ne/interview-test
- Owner: kant01ne
- Created: 2015-11-28T00:51:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-01T22:17:22.000Z (about 9 years ago)
- Last Synced: 2024-10-24T21:38:30.288Z (2 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# interview-test
## Install
Clone the repository and install dependencies
```shell
$ git clone https://github.com/Skaelv/interview-test.git
$ cd interview-test
$ npm install
$ grunt
```## Usage
### Flatten an array of integers
```shell
$ npm run ex1 []
```* array(opt) : Array to flatten. Don't forget to use quotes as the array will be parsed internally.
The program ignores any non-integer value. e.g.
["string", 2, [-3, 4], [3.8], 9] -> [ 2, -3, 4, 9 ]
### Invite customers to a party
```shell
$ npm run ex2 [ ]
```* radius(opt, default to 100) : Maximal distance in km to send the invitation
* path(opt, default to "./customer.json"): Path to list of potentially invited customers local file
* lat, lon (opt, default to 53.3381985, -6.2592576): GPS coordinates of party## Tests
```shell
$ grunt test
```## Author
Antoine Kevin
([[email protected]](mailto:[email protected]))