Skip to content

Instantly share code, notes, and snippets.

View rigobcastro's full-sized avatar
👨‍💻
Coding!

Rigo B Castro rigobcastro

👨‍💻
Coding!
View GitHub Profile
@rigobcastro
rigobcastro / gist:b8e689a4ef3c66a4c96dc9da0bd46b62
Last active December 18, 2020 20:10 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Servicio en mantenimiento</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@rigobcastro
rigobcastro / geo.js
Created May 4, 2017 12:34 — 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++) {