Skip to content

Instantly share code, notes, and snippets.

@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'),
@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)
{
$(function() {
$(".vignettes img.normal").mouseover(function() {
$(this).next("img.hover").fadeIn();
});
$(".vignettes img.normal").mouseout(function() {
$(this).next("img.hover").fadeOut();
});
});
var cubes = $$('a.cube');
cubes.each(function(cube,i) {
cube.addEvent('click',function(e) {
e.stop();
var to = $(cube.get("rel")).getPosition();
to.x = 0; to.y = to.y - 300;
var scroll = new Fx.Scroll(window,{
duration: 1000,
offset: to
}).start();
error.log:--2011-12-28 11:39:07-- http://gamesstudio.org/wp-content/uploads/2011/bss.txt
error.log:Saving to: `/tmp/bss.txt'
error.log:2011-12-28 11:39:08 (53.0 KB/s) - `/tmp/bss.txt' saved [26491/26491]
error.log:--2011-12-28 11:40:07-- http://gamesstudio.org/wp-content/uploads/2011/bss.txt
error.log:Saving to: `/tmp/bss.txt'
error.log:2011-12-28 11:40:08 (53.1 KB/s) - `/tmp/bss.txt' saved [26491/26491]
error.log:--2011-12-28 11:41:07-- http://gamesstudio.org/wp-content/uploads/2011/bss.txt
error.log:Saving to: `/tmp/bss.txt'
error.log:2011-12-28 11:41:08 (53.1 KB/s) - `/tmp/bss.txt' saved [26491/26491]
error.log:--2011-12-28 11:42:07-- http://gamesstudio.org/wp-content/uploads/2011/bss.txt
options:
collate: utf8_unicode_ci
charset: utf8
type: InnoDB
Profile:
connection: doctrine
actAs: { Timestampable: ~ }
columns:
user_id: { type: integer, notnull: true }
<pre>
<?php
$arr = array();
$tmp = array("1,2,3","3,4,5");
$push_array = function($array,$val)
{
return (isset($array)) ? array_merge($array,$val) : $val;
}
<VirtualHost *:80>
DocumentRoot "D:/Dev/UTCraft/web"
ServerName utcraft
ServerAlias utcraft
ErrorLog "logs/utcraft-error.log"
CustomLog "logs/utcraft-access.log" common
DirectoryIndex app.php
<Directory "D:/Dev/UTCraft/">
Options All
AllowOverride All
Depuis 188.165.222.52
ping 188.165.47.98
PING 188.165.47.98 (188.165.47.98) 56(84) bytes of data.
^C
--- 188.165.47.98 ping statistics ---
33 packets transmitted, 0 received, 100% packet loss, time 32254ms
traceroute 188.165.47.98
traceroute to 188.165.47.98 (188.165.47.98), 30 hops max, 60 byte packets
1 vss-3-6k.fr.eu (188.165.222.253) 128.800 ms * *
$(document).ready(function() {
$( "#liste" ).resizable({ minHeight: 10, maxHeight: 1000, minWidth: 10, maxWidth: 1000, containment: "parent" });
$('#liste tbody tr').click(function() {
var box = $(this).find(':checkbox');
if(box.attr('checked') == "checked" || box.attr('checked') == true)
{
$(this).removeClass('active');
box.attr('checked', false);
}
else