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
var cityCircle = new google.maps.Circle({ | |
strokeColor: '#FF0000', | |
strokeOpacity: 0.5, | |
strokeWeight: 2, | |
fillColor: '#FF0000', | |
fillOpacity: 0.35, | |
map: map, | |
center: latLng, | |
radius: 30 | |
}); |
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
// ==ClosureCompiler== | |
// @compilation_level ADVANCED_OPTIMIZATIONS | |
// @externs_url http://closure-compiler.googlecode.com/svn/trunk/contrib/externs/google_maps_api_v3.js | |
// ==/ClosureCompiler== | |
/** | |
* @author Michael Bianco <http://mabblog.com> | |
* @fileoverview Added minimum cluster size option | |
**/ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
class StringClean { | |
String jsonFileNameClean(String toClean) { | |
String cleannameoutput = ""; | |
toClean = replaceStartEndSpaces(toClean); | |
cleannameoutput = nameoutput.replaceAll(new RegExp(r'[^A-z|0-9]+'),'_'); | |
return cleannameoutput; |
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
/** | |
* | |
* Author: Domenico Monaco - [email protected] | |
* | |
* Description: | |
* Simple Handshake Three Way with Arduino over Serial communication | |
* | |
* License: GNU v2 2014 | |
**/ |
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
/** | |
* | |
* Author: Domenico Monaco | |
* | |
* Description: | |
* Simple Arduino Serial comunication, with echo of entire line received | |
* and calculation of time elapsed to read entire line. This example is | |
* extension of https://gist.github.com/kiuz/d59519e0de7677df42c3/ | |
* | |
* Source: https://gist.github.com/kiuz/9d151fcc568201cd8297 |
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
/** | |
* Author: Domenico Monaco | |
* | |
* Description: Simple Arduino Serial communication, with echo of entire line received. | |
* | |
* Source: https://gist.github.com/kiuz/d59519e0de7677df42c3/ | |
* | |
* License: GNU v2 2014 | |
*/ |
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
/** | |
* Author: Domenico Monaco, Yong Mook Kim | |
* | |
* Source: https://gist.github.com/kiuz/816e24aa787c2d102dd0 | |
* | |
* License: GNU v2 2014 | |
* | |
* Fork / Learned: http://www.mkyong.com/java/how-to-detect-os-in-java-systemgetpropertyosname/ | |
* | |
*/ |
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
int photoRPin = A2; | |
int minLight; | |
int maxLight; | |
int lightLevel; | |
int adjustedLightLevel; | |
void setup() { | |
Serial.begin(9600); | |
//Setup the starting light level limits |
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
//============================================================================ | |
// Name : TestCPP.cpp | |
// Author : Domenico Monaco | |
// Version : | |
// License : GPLv2 | |
// Copyright : Domenico Monao 2012 - | |
// Description : Hello World in C++, Ansi-style | |
//============================================================================ | |
#include <iostream> |
NewerOlder