Skip to content

Instantly share code, notes, and snippets.

View mathieu-fanduel's full-sized avatar

Mathieu Patureau mathieu-fanduel

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mathieu-fanduel on github.
  • I am mathieufanduel (https://keybase.io/mathieufanduel) on keybase.
  • I have a public key whose fingerprint is BC06 A1EF DD62 E9C2 AA72 8192 7D87 7A28 AEE6 CF18

To claim this, I am signing this object:

echo '{"jsonrpc":"2.0","id":"1","method":"verification.flow.addUsersToFlow","params":["ON_BOARDING", [1814680]]}' | nc localhost 54364
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Configuration
const int minTimeInSec = 5 * 60; // attente en sec quand le potentiometre est au mini
const int midTimeInSec = 60 * 60; // attente en sec quand le potentiometre est au max
const int maxTimeInSec = 120 * 60; // attente en sec quand le potentiometre est au max
const int minServoSpeed = 8; // vitesse min du servo
const int maxServoSpeed = 8; // vitesse max du servo
const int nbDelivery = 1; // nombre de fois on ouvre la trape
const int closed = 180; // angle du servo quand la trape est fermee
function drawBuffer( width, height, context, data ) {
var step = Math.ceil( data.length / width );
var amp = height / 2;
context.fillStyle = "silver";
context.clearRect(0,0,width,height);
for(var i=0; i < width; i++){
var min = 1.0;
var max = -1.0;
for (j=0; j<step; j++) {
var datum = data[(i*step)+j];