Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Looking for a job change.

cafebabe1991 raul1991

💭
Looking for a job change.
View GitHub Profile
@mkhatib
mkhatib / geo.js
Created May 24, 2013
A Javascript utility function to generate number of random Geolocations around a center location and in a defined radius.
View geo.js
/**
* 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++) {
@mrgcohen
mrgcohen / Readme.md
Last active Jun 26, 2020
Twitter Bootstrap Typeahead autocomplete example
View Readme.md

Requirements

  • bootstrap with typeahead
  • jquery

Explanation

This will use bootstrap with typeahead to create an autocomplete search.

@jfcalvo
jfcalvo / JavaC.sublime-build
Created Sep 26, 2012
Sublime Text 2 Build System for Java (Compile and running)
View JavaC.sublime-build
{
"cmd": ["javac \"$file_name\" && java \"$file_base_name\""],
"shell": true,
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java"
}