Skip to content

Instantly share code, notes, and snippets.

View sylv1b's full-sized avatar
🚤
Focusing

Sylvain Brochard sylv1b

🚤
Focusing
View GitHub Profile
@sylv1b
sylv1b / gist:f5b94f1f887b465f705da24c62b66608
Created October 10, 2018 22:52
Min Stockholm Privacy Policy
Privacy Policy
Sylvain Brochard built the Min Stockholm app as a Free app. This SERVICE is provided by Sylvain Brochard at no cost and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Min Stockholm unless otherwise defined in this Privacy Policy.
Information Collection and Use
@sylv1b
sylv1b / geo.js
Created March 6, 2021 20:01 — forked from mkhatib/geo.js
A Javascript utility function to generate number of random Geolocations around a center location and in a defined radius.
/**
* Generates number of random geolocation points given a center and a radius.
* @param {Object} center A JS object with lat and lng attributes.
* @param {number} radius Radius in meters.
* @param {number} count Number of points to generate.
* @return {array} Array of Objects with lat and lng attributes.
*/
function generateRandomPoints(center, radius, count) {
var points = [];
for (var i=0; i<count; i++) {