This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'yaml' | |
# Load settings from vagrant.yml or vagrant.yml.dist | |
current_dir = File.dirname(File.expand_path(__FILE__)) | |
if File.file?("#{current_dir}/vagrant.yml") | |
config_file = YAML.load_file("#{current_dir}/vagrant.yml") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Fonction permettant de se débarrasser des accents dans une chaîne de caractères, | |
* en les remplaçant par la lettre correspondante | |
* | |
* @param string $string Chaîne à nettoyer | |
* | |
* @return string Chaîne débarrassée d'accents | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Conversion d'un nombre d'octets en une taille lisible | |
* | |
* @param int $size Taille en octets | |
* | |
* @return string Taille lisible | |
*/ | |
function convertSize($size) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Fonction de débuggage | |
* | |
* Permet d'arrêter l'exécution du script et d'afficher le contenu d'une | |
* variable. | |
* | |
* @param mixed $objet Variable à afficher | |
* @param boolean $detail TRUE pour afficher un var_dump, FALSE pour print_r |