Skip to content

Instantly share code, notes, and snippets.

View floriancargoet's full-sized avatar

Florian Cargoët floriancargoet

View GitHub Profile
@jamieowen
jamieowen / youtube.rb
Created March 17, 2012 18:14
Octopress Youtube plugin...
module Jekyll
class Youtube < Liquid::Tag
@width = 640
@height = 390
def initialize(name, id, tokens)
super
@id = id
end
@creationix
creationix / linux-node-joystick.js
Created January 28, 2012 21:49
Basic Linux Joystick support.
var FS = require('fs');
var EventEmitter = require('events').EventEmitter;
// http://www.mjmwired.net/kernel/Documentation/input/joystick-api.txt
function parse(buffer) {
var event = {
time: buffer.readUInt32LE(0),
number: buffer[7],
value: buffer.readInt16LE(4)
}
@revolunet
revolunet / gist:1104964
Created July 25, 2011 19:30
VLC HTTP stream + intf
REM SERVER (HTTP)
vlc "C:\\Users\\juju\\Desktop\\divx\\aymo_brille.avi" --sout="#duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:1234}}" --extraintf=http
REM CLIENT
vlc http://SERVERIP:1234 --http-caching=5000
@jed
jed / LICENSE.txt
Created May 10, 2011 16:38 — forked from 140bytes/LICENSE.txt
use cached DOM elements to escape HTML
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE