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
[ | |
{ | |
"question": "XXX", | |
"answer": "Productivity4 est une application qui regroupe vos tâches, notes, rappels **et** motivation dans une seule interface épurée. Fini les to-do lists qui se reproduisent la nuit ! L'application fonctionne à 100% hors-ligne quand vous le souhaitez, et se synchronise automatiquement sur le cloud quand vous êtes connecté." | |
}, | |
{ | |
"question": "Comment fonctionne le bouton \"Café\" ?", | |
"answer": "Le bouton \"Café\" est une fonction bêta qui vous permet de déclencher votre machine à espresso connectée directement depuis l'application. C'est une fonctionnalité exclusive qui transforme votre expérience de productivité en vous préparant un café au moment idéal de votre workflow." | |
}, | |
{ |
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
#!/bin/bash | |
#fakewebcam script | |
TIME=$(date +"%H") | |
DAY='10' | |
NIGHT='20' | |
if [ ${TIME} -ge ${DAY} -a ${TIME} -le ${NIGHT} ]; then | |
#echo "It's day!" | |
raspistill -q 90 -w 640 -h 480 -t 60 -o /var/www/webcam.jpg | |
else |
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
# Edit this file to introduce tasks to be run by cron. | |
# | |
# For example, you can run a backup of all your user accounts | |
# at 5 a.m every week with: | |
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ | |
# | |
# For more information see the manual pages of crontab(5) and cron(8) | |
# | |
# m h dom mon dow command |
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
#Basic /etc/network/interfaces file to access an encrypted AP | |
#Replace SSID by the name of the network the RPi must connect too | |
#Replace PASSWORD by the WPA password of the network | |
#loopback and ethernet | |
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
#wlan |
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 | |
//returns an array with the names extracted | |
function name_extractor($url){ | |
$res=array(); | |
$html = file($url); | |
foreach($html as $ligne) | |
if(preg_match("/class\=\"username\"\>(.+)\<\/a\>/",$ligne,$matches)) | |
array_push($res,$matches[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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Flickr</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script> | |
//jsonFlickrFeed is the default callback function returned by flickr, let's use it... |