This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.1' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.3 | |
container_name: elasticsearch | |
ports: | |
- "9200:9200" | |
- "9300:9300" | |
networks: | |
- docker-elk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:8.9.4 | |
deploy_production: | |
stage: deploy | |
environment: production | |
only: | |
- master | |
script: | |
- npm install -g firebase-tools | |
- npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class GeoUtil { | |
/** | |
* @param center = {lat, lng} | |
* @param radius = 1000 | |
* @param count = 10 | |
*/ | |
static generateRandomPoints(center, radius = 1000, count = 10) { | |
const points = []; | |
for (let i = 0; i < count; i++) { | |
points.push(this.generateRandomPoint(center, radius)); |
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/