Skip to content

Instantly share code, notes, and snippets.

$(function() {
$(".vignettes img.normal").mouseover(function() {
$(this).next("img.hover").fadeIn();
});
$(".vignettes img.normal").mouseout(function() {
$(this).next("img.hover").fadeOut();
});
});
@MiLk
MiLk / pile.c
Created November 29, 2011 16:49
NF16-TP05
void empiler(Pile* pile, NodePtr noeud)
{
Element* element;
element->noeud = noeud;
element->succ = (*pile);
pile = &element; // L'adresse de la pile vaut l'adresse de l'élément
}
NodePtr depiler(Pile* pile)
{
@MiLk
MiLk / tp4.php
Created November 27, 2011 15:40
<?php
$fonctions = array(
'cree_tache' => array('caract','duree'),
'cree_liste' => array('tache'),
'affiche_liste' => array('list_task'),
'ajoute_tache' => array('list_task','ptache'),
'annule_tache' => array('list_task','caract'),
'execute_tache_FIFO' => array('list_task'),
'depile_tache' => array('list_task'),
Resultat test_cree_tache()
{
return getDiagnostic(cree_tache_cat1(),cree_tache_cat2(),cree_tache_cat3());
}
bool cree_tache_cat1()
{
printf("parametres :\n");
printf("caract :\n");
printf("duree :\n");
(defun explore-depth (state)
(if (equal state final)
(progn
(print state)
T)
(dolist (succ (successors state) NIL)
(progn
(print state)
(if (equal (explore-depth succ) T)
(return T))
@MiLk
MiLk / IA01-TP02.cl
Created November 12, 2011 14:03
ia01 tp02
(defvar initial '(0 0 0 1 0 1))
(defvar final '(1 1 1 1 1 1))
(defun inverser (x)
(if (= x 1) 0 1)
)
(defun new-state(state pos)
(when (<= (length state) (+ pos 1)) (return-from new-state state))
(let ((i 0)(new-list '()))
(dolist (arrow state new-list)
(defun inverser (x)
(if (= x 1) 0 1)
)
(defun new-state(state pos)
(when (<= (length state) (+ pos 1)) (return-from new-state state))
(let ((i 0)(new-list '()))
(dolist (arrow state new-list)
(if (or (= i pos) (= i (+ pos 1)))
(setq new-list (append new-list (list (inverser arrow))))
(setq new-list (append new-list (list arrow)))
(defun proximite (etat etat-final)
(let ((l1 etat)(l2 etat-final) (retour 0))
(dolist (var l2 retour)
(when (equal (pop l1) var)
(setq retour (+ retour 1)))
)
)
)
(proximite initial final)
@MiLk
MiLk / faq.js
Created November 1, 2011 16:52
jQuery().ready(function(){
$(".question").next(".reponse").hide();
$(".question").click(function(){
if($(this).next(".reponse").is(":hidden")){
$(".question").next(".reponse:visible").slideUp();
$(".question").removeClass("active");
$(this).addClass("active");
$(this).next(".reponse").slideDown();
}
else
var retour = true;
var tempsTransition = 1000;
var lectureAutomatique = true;
var tempsAttente = 6000;
var interval;
var lectureEnCours = false;
var currentPosition = 0;
var slideWidth = 780;
$(document).ready(function(){