This file contains 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
- .DS_Store | |
- ._* | |
- trashbox/* | |
- .sync-filter |
This file contains 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
#!/bin/sh | |
rclone sync /mnt/disk1/documents OVH_Object_Storage:nas-sauvegarde/documents |
This file contains 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 | |
/** | |
* Méthode permettant de calculer l'âge en PHP | |
* à partir d'une date au format JJ/MM/AAAA (à la française) | |
*/ | |
function getAge($dateOfBirth) { | |
// On split la date de naissance au caractère "/" | |
$segments = explode('/', $dateOfBirth); | |
// On calcule le timestamp UNIX correspondant à cette date |
This file contains 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
var keysToDisable = [37, 38, 39, 40, 33, 34, 35, 36]; | |
function preventDefault(e) { | |
e = e || window.event; | |
if (e.preventDefault) { | |
e.preventDefault(); | |
} | |
e.returnValue = false; | |
} |