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
@xseignard
xseignard / Gruntfile.js
Last active December 17, 2015 19:50
Compass setup for foundation with foundation-icons managed by bower
module.exports = function(grunt) {
// grunt conf
grunt.initConfig({
// compile foundation style
compass: {
foundation: {
options: {
sassDir: 'components/foundation/scss',
cssDir: 'src/styles/foundation/css'
@xseignard
xseignard / gist:5706788
Created June 4, 2013 15:26
log jenkins
Jun 04, 2013 3:24:55 PM com.cloudbees.jenkins.GitHubWebHook processGitHubPayload
INFO: Poked test
Jun 04, 2013 3:24:55 PM com.cloudbees.jenkins.GitHubWebHook processGitHubPayload
FINE: Considering to poke test
Jun 04, 2013 3:24:55 PM com.cloudbees.jenkins.GitHubWebHook processGitHubPayload
FINE: Skipped breizhcamp-js because it doesn't have a matching repository.
Jun 04, 2013 3:24:55 PM com.cloudbees.jenkins.GitHubWebHook processGitHubPayload
FINE: Considering to poke breizhcamp-js
Jun 04, 2013 3:24:55 PM com.cloudbees.jenkins.GitHubWebHook processGitHubPayload
FINE: Full details of the POST was {"ref":"refs/heads/master","after":"1783cd244934c14547684cdea5b86aaaf4462635","before":"9159e1632dd32304f69313948f0a12187453afe3","created":false,"deleted":false,"forced":false,"compare":"https://github.com/xseignard/breizhcamp-js/compare/9159e1632dd3...1783cd244934","commits":[{"id":"0c2d750068be0640d817369c2f029ec1c84e7376","distinct":true,"message":"express server now renders client pages","timestamp":"2013-06-04T0
@xseignard
xseignard / test.js
Last active December 18, 2015 17:58
Setting a value to a pin inside the callback of another set seems to be blocking.
var gpio = require('gpio'),
pin4 = gpio.export(4, {
direction: 'out'
}),
pin17 = gpio.export(17, {
direction: 'out'
});
pin4.set(1, function() {
pin17.set(0, function() {
@xseignard
xseignard / frame.json
Created June 25, 2013 14:17
Leap frame example
{
"hands":[
{
"direction":[
-0.255273,
0.810761,
-0.526785
],
"id":6,
"palmNormal":[
@xseignard
xseignard / event.js
Created August 9, 2013 08:16
Event seems not emitted in the test
var util = require('util'),
proc = require('child_process'),
EventEmitter = require('events').EventEmitter;
var Test = function() {
var _self = this;
proc.exec('ls -l', function(error, stdout, stderr) {
_self.emit('test');
});
};
@xseignard
xseignard / wifuck.md
Last active December 20, 2015 23:39
Ad-hoc wifi

On my computer:

~ % ifconfig
docker0   Link encap:Ethernet  HWaddr 1a:53:fc:1b:12:b5  
          inet adr:172.17.42.1  Bcast:0.0.0.0  Masque:255.255.0.0
          adr inet6: fe80::1853:fcff:fe1b:12b5/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
@xseignard
xseignard / Install.md
Last active December 22, 2015 22:49
Install node on windows

Salut Boris,

Peux tu envoyer ce message aux participants du workshop?

Bonjour,

Samedi à lieu votre workshop “Xbee et Arduino”. Pensez à configurer et installer, si besoin, les logiciels suivants :

Windows

@xseignard
xseignard / gist:6612468
Last active December 23, 2015 09:09
am i stupid?
void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT);
}
void loop() {
String content= "";
while(Serial.available()) {
content.concat((char)Serial.read());
delay (10);
}
@xseignard
xseignard / midi.js
Created October 1, 2013 16:31
send midi messages with node.js
var midi = require('midi'),
midiOut = new midi.output();
try {
midiOut.openPort(0);
} catch(error) {
midiOut.openVirtualPort('');
}
var loop = function() {
@xseignard
xseignard / test.svg
Last active December 26, 2015 10:59
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.