Skip to content

Instantly share code, notes, and snippets.

@Servuc
Servuc / teaching2-analogSensor.ino
Last active September 28, 2017 11:42
Teaching :)
#define SENSOR_PIN A0
void setup() {
pinMode( SENSOR_PIN, INPUT );
Serial.begin(9600);
}
void loop() {
Serial.println( analogRead( SENSOR_PIN ) );
delay(2500);
@Servuc
Servuc / .block
Last active March 7, 2017 07:10
Trek'n'Co money
license: mit
/**
Licence MIT
@Servuc
Linked to my teaching http://servuc.github.io/teaching/iot-4.html
Base code to help students :P
*/
@Servuc
Servuc / PrototypeJs.js
Created February 28, 2017 17:02
Example of prototype in JS
//Global variable (like static)
App = {
value: 1
};
/*
* Mother class constructor
*/
function ClassA() {
this.value = 1;
@Servuc
Servuc / .block
Last active January 16, 2017 07:36
level
license: mit
@Servuc
Servuc / .block
Last active August 17, 2016 10:46
d3.zoom.translateExtends
license: gpl-3.0
@Servuc
Servuc / .block
Created August 16, 2016 09:52
Drag & Zoom
license: gpl-3.0
@Servuc
Servuc / .block
Last active August 9, 2016 14:57
Pan & Zoom with click
license: gpl-3.0
@Servuc
Servuc / arduino-shutter.ino
Last active April 28, 2016 21:04
Arduino shutter
/**
* @author http://servuc.github.io
*
* This code is in public domain
* It's was create for the instructable :
*
* http://www.instructables.com/id/Arduino-Shutter-Opener
*/
#define SWITCH_DOWN_PIN 2
#define SWITCH_UP_PIN 3