Skip to content

Instantly share code, notes, and snippets.

@bussiere
bussiere / schabada.erl
Created November 26, 2010 22:39
schabada in erlang
-module('schabada').
-export([schabada/1,mots/0]).
% le but est de trouver le titre d'une chanson ou une chanson contenant en parole le mot donné.
schabada(let_me_be)->
["Let Me Be With You - Chobits","Let Me Be Your Girl - Sakura Wars"].
mots()->
[let_me_be].
@bussiere
bussiere / loupgarou.py
Created November 26, 2010 22:40
loup garou in python
# -*- coding: cp1252 -*-
loupgarou_personnage = ["Lio Shirafumi"," Nvrsq Chaos","Rail Tracer","yoma"," Vash","Rena","Byakuran","Aizen","Tokyo","Oora Kanako"]
voleur_personnage = ["Isaac","Miria","Abiru Kobushi"]
loupblanc_personnage=["Horo","Mitama Mayo"]
idiotduvillage_personnage=["Itoshiki Majiru"]
villageois_personnage =["Shinji", "Makoto", "Emiya","Sunohara", "Nagisa","Usui Kagerou"]
chasseur_personnage =["Kenpachi","Guts","Keichi","Kudou Jun"]
sorciere_personnage =["Dokuro-chan","Beato","Béatrice","Yuuko","CC","Medusa Gordon","Mion","Kimura Kaere"]
cupidon_personnage =["Konno Makoto","Shion","Fujiyoshi Harumi"]
petitefille_personnage =["imouto"," Nanoha","Furude Rika","Satoko","Otonashi Meru","Stocking"]
@bussiere
bussiere / LogDebug.java
Created November 29, 2010 10:13
a tiny tools for debugging in java
// Write String a the end of a file
package outils;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Date;
public class LogDebug
{
@bussiere
bussiere / contrario.py
Created December 8, 2010 15:10
Contrario in python
liste =
{ {} }
Cryptages Foci
Mecha/clamp
Code Geass
Indien Alula
Space Op /western
@bussiere
bussiere / Anonymous.py
Created December 9, 2010 10:33
We are anonymous we are legion
import urllib
import time
import random
while True :
urllib.urlopen("http://visa.com/")
urllib.urlopen("http://www.amazon.co.uk/gp/product/B004EEOLIU?ie=UTF8&force-full-site=1")
time.sleep(random.randint(10, 40))
@bussiere
bussiere / citations
Created December 24, 2010 10:16
citations quote informatic informatique quotes computer science
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
“In order to understand recursion, one must first understand recursion.” – Author Unknown
“I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone.” – Bjarne Stroustrup
“A computer lets you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila.” – Mitch Ratcliffe
“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.” -C.A.R. Hoare
“The gap between theory and practice is not as wide in theory as it is in practice.” – Author Unknown
“If builders built buildings the way progra
@bussiere
bussiere / randomjunitfail.java
Created December 29, 2010 12:17
random java junit fail
package Test;
import java.util.Random;
import junit.framework.TestCase;
public class JunitFailTest extends TestCase
{
public void test()
{
@bussiere
bussiere / programming joke
Created December 29, 2010 12:55
programming joke
How can you tell when a programmer has had sex?
When he’s washing the pepper spray out of his eyes.
~~~~~~~~~~~~~~~~~~~~~~~~~
Two bytes meet. The first byte asks, “Are you ill?”
The second byte replies, “No, just feeling a bit off.”
@bussiere
bussiere / commande_panty_stocking_garterbelt.py
Created December 29, 2010 16:13
commande panty stocking ost
prix = 24.60
commande = [
["Bussiere","Haruhi","Paye"],
["ZettaiRyouiki","Haruhi","Du"],
["Ion_Negatif","Haruhi","Du"],
["Nautawi","Haruhi","Paye"],
["Pocket Daniel","Haruhi","Du"],
["Babatus","Haruhi","Du"],
["Ramyel","Thalie","Du"]
@bussiere
bussiere / task.py
Created January 4, 2011 22:07
task
"Faire un plan,modelisation"
"A partir du plan Faire le tri de quoi vendre quoi garder"
"Avoir de l'eau evacuation de flotte"