- Une machine avec un système d'exploitation, GNU/Linux ou Unix-like (BSD, Mac Os X) conseillés
- Apache
- PHP >5.3
- BDD : MySQL ou MariaDB de préférence. SQLite reste néanmoins possible.
- Git
- Git Flow : Instructions d'installation
- Installer drush via Pear, de préférence, Instructions d'installation
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 | |
$output = array(); | |
$returned_code = 0; | |
exec('echo 0 > /dev/ttyAM0; cat /dev/ttyAM0', $output, $returned_code); | |
print_r($output); | |
echo 'Avec un code de retour: ' . $returned_code; |
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 | |
//(c) Lucas Lombard | |
$error = "No Sockets"; | |
$list = shell_exec("screen -ls"); | |
if (strpos($list, $error) !== FALSE) { | |
exec('screen -dmS arduino /dev/ttyAMA0 115200'); | |
sleep(1); | |
exec('screen -p 0 -S arduino -X eval \'stuff \"2\"\''); | |
header('Location: '.$_SERVER['PHP_SELF']); | |
} |
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
var | |
cx = (c = document.getElementById('c')).getContext('2d'), | |
size=800, | |
ra=Math.random, | |
cE=Math.ceil, | |
w = window, | |
d=document, | |
UC=function(c){return String.fromCharCode(parseInt(c,16))} | |
u = 1, | |
f=255, |
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
div.views-display-column>div.views-ui-display-tab-bucket{ | |
position: relative; | |
} |
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 | |
/* | |
Public Domain | |
Original by Twen from #Drupalfr on IRC Freenode. | |
*/ | |
/* Inserting a photo into a vCard 2.1 */ |
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
if not oop then os.loadAPI('oop') end | |
if not term then os.loadAPI('term') end | |
if not colors and term.isColour() | |
then os.loadAPI('colors') | |
else colors = { | |
white = 1, | |
orange = 2, | |
magenta = 4, | |
lightBlue = 8, | |
yellow = 16, |
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 | |
/******************************************************\ | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
http = require 'http' | |
path = require 'path' | |
fs = require 'fs' | |
port = 80 | |
sysout = console.log | |
CONTENT_TYPES = | |
html : 'text/html' | |
js : 'application/javascript' |
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
Show hidden characters
{ | |
"keys" : ["super+r"], | |
"command" : "show_overlay", | |
"args" : { | |
"overlay" : "goto", | |
"text" : "@function " | |
} | |
} |