Skip to content

Instantly share code, notes, and snippets.

View domenicomonaco's full-sized avatar
🎯
Focusing

Domenico Monaco domenicomonaco

🎯
Focusing
View GitHub Profile
@domenicomonaco
domenicomonaco / Circle_Draw_GOOGLE_map_pixe_VS_radius.js
Created September 19, 2016 16:28
Circle_Draw_GOOGLE_map_pixe_VS_radius
var cityCircle = new google.maps.Circle({
strokeColor: '#FF0000',
strokeOpacity: 0.5,
strokeWeight: 2,
fillColor: '#FF0000',
fillOpacity: 0.35,
map: map,
center: latLng,
radius: 30
});
@domenicomonaco
domenicomonaco / clustermarker.js
Created September 17, 2016 22:23 — forked from iloveitaly/clustermarker.js
Google Maps V3 Cluster Marker With Minimum Cluster Size
// ==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
**/
@domenicomonaco
domenicomonaco / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@domenicomonaco
domenicomonaco / StringClean.dart
Last active August 29, 2015 14:06
StringClean.dart
class StringClean {
String jsonFileNameClean(String toClean) {
String cleannameoutput = "";
toClean = replaceStartEndSpaces(toClean);
cleannameoutput = nameoutput.replaceAll(new RegExp(r'[^A-z|0-9]+'),'_');
return cleannameoutput;
@domenicomonaco
domenicomonaco / HandshakeThreeWay.ino
Last active July 31, 2019 06:02
Handshake Three Way with Arduino
/**
*
* Author: Domenico Monaco - hack@kiuz.it
*
* Description:
* Simple Handshake Three Way with Arduino over Serial communication
*
* License: GNU v2 2014
**/
@domenicomonaco
domenicomonaco / SerialEchoLineWithTime.ino
Last active August 29, 2015 14:06
Simple Arduino Serial comunication, with echo of entire line received and calculation of time elapsed to read entire line.
/**
*
* 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
@domenicomonaco
domenicomonaco / SerialEchoLine.ino
Last active August 29, 2015 14:06
Simple Arduino Serial Communication with Echo of line
/**
* 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
*/
@domenicomonaco
domenicomonaco / OsValidator.java
Last active August 3, 2017 14:20
OSValidator.java
/**
* 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/
*
*/
@domenicomonaco
domenicomonaco / PhotoResistor.ino
Last active August 29, 2015 13:57
Arduino Photoresistor
int photoRPin = A2;
int minLight;
int maxLight;
int lightLevel;
int adjustedLightLevel;
void setup() {
Serial.begin(9600);
//Setup the starting light level limits
@domenicomonaco
domenicomonaco / TestCPP.cpp
Created March 14, 2012 09:49
Tipo reference & Puntatori in CPP
//============================================================================
// Name : TestCPP.cpp
// Author : Domenico Monaco
// Version :
// License : GPLv2
// Copyright : Domenico Monao 2012 -
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostream>