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/sh | |
| # Settings for a PHP Project | |
| # Using: | |
| # * PHP Lint | |
| # *- PHP CS | |
| # *- PHP Analyzer | |
| # *- EmptyLines Checker | |
| # *- Scrutinizer | |
| # * PHPCPD |
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 | |
| /* | |
| * Outputs a color (#000000) based Text input | |
| * | |
| * @param $text String of text | |
| * @param $min_brightness Integer between 0 and 100 | |
| * @param $spec Integer between 2-10, determines how unique each color will be | |
| */ | |
| function genColorCodeFromText($text,$min_brightness=100,$spec=10) |
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
| /*! | |
| * JavaScript - loadGoogleMaps( version, apiKey, language ) | |
| * | |
| * - Load Google Maps API using jQuery Deferred. | |
| * Useful if you want to only load the Google Maps API on-demand. | |
| * - Requires jQuery 1.5 | |
| * | |
| * Copyright (c) 2011 Glenn Baker | |
| * Dual licensed under the MIT and GPL licenses. | |
| */ |
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
| To install redis from debian backports we need to add the backports sources. | |
| 1. Add to /etc/apt/sources.list: | |
| deb http://backports.debian.org/debian-backports squeeze-backports main | |
| 2. Retrieve debian key | |
| $ gpg --keyserver pgp.mit.edu --recv-keys AED4B06F473041FA |
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
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * Script to make your LedBorg pick random colours at a regular interval | |
| * | |
| * PHP version 5 | |
| * | |
| * @category PiBorg | |
| * @package PiBorg | |
| * @author Arnaud TIERANT <at@synap.fr> |
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
| import imaplib | |
| import email | |
| #connect to gmail | |
| mail = imaplib.IMAP4_SSL('imap.gmail.com') | |
| mail.login('email@gmail.com','yourPassWordPlease') | |
| mail.select('inbox') | |
| mail.list() |
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 | |
| /* | |
| /// File containing the ReadIMAPController class | |
| */ | |
| class ReadIMAPController { | |
| /******************************** Class Attributes ***********************************/ | |
| /* | |
| /// URL of the server | |
| /// |
NewerOlder