Skip to content

Instantly share code, notes, and snippets.

@matael
matael / COPYING
Created July 9, 2012 21:28
Migration PP
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
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
@matael
matael / LICENSE
Created July 15, 2012 13:06
Graphe adhésions pp
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
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
@matael
matael / README
Created September 15, 2012 16:41
Arduino DMX
Arduino DMX
Juste un moyen d'utiliser l'arduino pour controler des projecteurs.
Ici, j'ai utilisé un driver minimaliste (un transistor, deux résistances).
On utilise aussi la lib DmxSimple (Tinker.it) en modifiant le fichier DmxSimple.cpp :
il faut remplacer #include "wiring.h" par #include "Arduino.h"
DmxSimple : http://code.google.com/p/tinkerit/wiki/DmxSimple
@matael
matael / extractor.sh
Created October 6, 2012 15:25
BU script
#!/bin/sh
# Simple extractor to know if the Campus library in Le mans is open or close.
echo "Aujourd'hui, $(curl -s http://cyberlib.univ-lemans.fr/calendriers/le_mans_2012-2013.php |
grep CALtitre |
head -n 1|
sed -e 's#[^:]*:\s\([^\<]*\).*#\1#g'|
sed 's/\&agrave;/à/g' |
sed 's/\&egrave/è/g')";
clear all;
close all;
dossier = '../../mesures/';
fichier = '/Donnees_temporelles.txt';
Fe = 51200;
% Start/Stop Ballon
ballon_anecho_fn = 'seance3_ballon_anecho';
clear all;
close all;
dossier = '../../mesures/';
fichier = '/Donnees_temporelles.txt';
Fe = 51200;
% Start/Stop Ballon
ballon_anecho_fn = 'seance3_ballon_anecho';
clear all;
close all;
% globales {{{1
bin_fn = 'conv_chanson_51k2.wav';
start_bin = 177058;
mon_fn = 'conv_mono_chanson_51k2.wav';
start_mon = 107546;
function [ norm ] = normalize( in )
% Normalize a vect to its maximum
maxi = max(max(in));
norm = in./maxi;
end
\documentclass[a4paper, 11pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
% header/footer
\usepackage{fancyhdr}
\lhead{}
\chead{\bfseries Un Hackerspace au Mans}
@matael
matael / graph.py
Created January 15, 2013 09:04
#jellylemans
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from twitter import Twitter
from matplotlib import pyplot
twlk = Twitter(domain="search.twitter.com")
hashtag = "#jellylemans"