Skip to content

Instantly share code, notes, and snippets.

View xseignard's full-sized avatar
🦄
Internet thuggin'

Xavier Seignard xseignard

🦄
Internet thuggin'
View GitHub Profile

Host (ubuntu 15.04)

~ % route -n
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
0.0.0.0         192.168.1.254   0.0.0.0         UG    1024   0        0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
172.16.3.0      0.0.0.0         255.255.255.0   U     0      0        0 vmnet8
172.16.57.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
'use strict';
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
gutil = require('gulp-util'),
source = require('vinyl-source-stream'),
buffer = require('vinyl-buffer'),
del = require('del'),
browserify = require('browserify'),
#include <Ethernet.h>
#include <SPI.h>
#include <Button.h>
#include <elapsedMillis.h>
elapsedMillis doorElapsed;
unsigned int doorInterval = 100;
Button door = Button(A0, INPUT_PULLUP);
#include <SoftwareSerial.h>
SoftwareSerial cptSerial(2, 3);
#define startFrame 0x02
#define endFrame 0x03
#define startLine 0x0A
#define endLine 0x0D
void setup() {
Serial.begin(9600);
cptSerial.begin(1200);
#include <SoftwareSerial.h>
char inChar;
String data = "";
SoftwareSerial teleInfo(2, 3);
int watts;
void setup() {
Serial.begin(9600);
#include "LPD8806.h"
#include "SPI.h"
// passer à 0 pour virer le debug
#define DEBUG 1
// nb de leds pour un tube
// 144 leds par tube, leds adressable 3 par 3, et 3 leds pour un RGB, donc 144/9 = 16 leds RGB en equivalence
int nLEDs = 16;
// automatically set by OF
attribute vec4 position;
attribute vec2 texcoord;
uniform mat4 modelViewProjectionMatrix;
// varying that will be passed to the fragment shader
varying vec2 vUv;
// noop vertex shader
void main() {
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
void main() {
vec2 p = gl_FragCoord.xy / resolution.xy;
vec3 a = texture2D(from, p).rgb;
@xseignard
xseignard / sweatlodge.ino
Created May 6, 2015 01:49
sweatlodgeParty
#include <SPI.h>
#include <DMD.h>
#include <TimerOne.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
// -----------------------------------------------------------
// DMD stuff
// USE with https://github.com/xseignard/DMD, not the freetronics one!!
// -----------------------------------------------------------
@xseignard
xseignard / debugArduino.ino
Created April 16, 2015 14:51
sharp 2y0a21
int IR = A0;
const int MIN_MEASURE = 10;
const int MAX_MEASURE = 80;
void setup() {
Serial.begin(9600);
pinMode(IR, INPUT);
}