Skip to content

Instantly share code, notes, and snippets.

<!--JOURS-->
<div class="jours">
<img src="./images/landing/compteur/1.png" width="46" height="66" alt="1" class="jours_01"/>
<img src="./images/landing/compteur/5.png" width="46" height="66" alt="5" class="jours_02"/>
<img src="./images/landing/compteur/7.png" width="46" height="66" alt="7" class="jours_03"/>
</div>
<!--HEURES-->
<div class="heures">
<img src="./images/landing/compteur/2.png" width="46" height="66" alt="2" class="heures_01"/>
<img src="./images/landing/compteur/4.png" width="46" height="66" alt="4" class="heures_02"/>
@MiLk
MiLk / tp3.c
Created October 18, 2011 13:02
TP3 NF16
#include "tp3.h"
// Fonctions à réaliser
task * cree_tache(char caract[MAX_NOM + 1], int duree)
{
task *ptask = (task*)malloc(sizeof (task));
//strcpy(ptask->ID,caract);
*(ptask->ID) = caract;
ptask->duree = duree;
int** sous_matrice(int** mat, int row, int col, int taille)
{
int i, j, k, l;
int **new_mat;
new_mat = malloc(taille * taille * sizeof (int));
i = 0;
k = 0;
while (k < taille)
{
if (k == row)
<a href="javascript:;" rel="1" class="ajax_link">Text</a>
<script type="text/javascript">
//<![CDATA[
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
@MiLk
MiLk / gist:1189959
Created September 2, 2011 21:22
Comparaison Varnish / Nginx / Apache2
-- Varnish + Nginx
httperf --client=0/1 --server=www.hostyourcreeper.com --port=6081 --uri=/ --send-buffer=4096 --recv-buffer=16384 --num-conns=500 --num-calls=10
Maximum connect burst length: 1
Total: connections 500 requests 5000 replies 5000 test-duration 166.988 s
Connection rate: 3.0 conn/s (334.0 ms/conn, <=1 concurrent connections)
Connection time [ms]: min 293.1 avg 334.0 max 5315.1 median 309.5 stddev 316.5
Connection time [ms]: connect 0.1
@MiLk
MiLk / gist:1162375
Created August 22, 2011 13:28
Slideshow
$("#slideshow .slide_control").click(function () {
slideshowSwitch();
});
setInterval('slideshowSwitch();',5000);
function slideshowSwitch() {
var next = $("#slideshow .active").next(".slide");
if($("#slideshow .active").hasClass("last"))
next = $("#slideshow .first");
@MiLk
MiLk / gist:1161937
Created August 22, 2011 08:34
Mass mailer
<?php
/*
* Mass mailer with PHPMailer
* http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6/PHPMailer%20v5.1/PHPMailer_v5.1.zip/download
*/
require_once('./class.phpmailer.php');
$mail = new PHPMailer();
@MiLk
MiLk / ScriptDev2_2224_to_MaNGOS_one.patch
Created June 21, 2011 19:35
Update ScriptDev2_2224_to_MaNGOS_one.patch
From 119469b62d86cf121adbe835d8ff33ba4f0f8b4b Mon Sep 17 00:00:00 2001
From: MiLk <hello@emilienkenler.com>
Date: Tue, 21 Jun 2011 21:33:12 +0200
Subject: [PATCH] Update TBC-patch
---
include/precompiled.h | 5 +
include/sc_instance.cpp | 22 --
include/sc_instance.h | 3 -
.../shadowfang_keep/shadowfang_keep.cpp | 8 +-
# mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building dynmap
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]