- http://opensourcehardwarejunkies.com/
- http://electronics.flosscience.com/Home_LE/lectures
- http://physcomp.flosscience.com/
- http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-002-circuits-and-electronics-spring-2007/video-lectures/
- http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-01sc-introduction-to-electrical-engineering-and-computer-science-i-spring-2011/index.htm
- http://www.learnerstv.com/Free-Computer-Science-Video-lectures-ltv720-Page1.htm
- http://oreilly.com/training/arduino-audio-visual/
- http://www.jeremyblum.com/category/arduino-tutorials/
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 | |
App::uses('Model', 'Model'); | |
class AppModel extends Model { | |
public $actsAs = array('Containable'); | |
public $recursive = -1; | |
public function getErrors() { | |
return $this->validationErrors; |
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
CREATE TABLE `countries` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`iso` char(2) NOT NULL, | |
`name` varchar(80) NOT NULL, | |
`printable_name` varchar(80) NOT NULL, | |
`iso3` char(3) DEFAULT NULL, | |
`numcode` smallint(6) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM AUTO_INCREMENT=240 DEFAULT CHARSET=utf8; |
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 | |
var_dump(exec('xvfb-run /usr/bin/wkhtmltopdf http://google.com /var/www/yep.test.' . time())); | |
$test = array( | |
array('pipe', 'r'), | |
array('pipe', 'w'), | |
array('pipe', 'w'), | |
); |
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 | |
if (!session_id()) { session_start(); } | |
App::import('Vendor', 'Facebook'); | |
class FacebookCake | |
{ | |
public function __construct($name = '') | |
{ |
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 | |
/* | |
* Template of virtual host | |
*/ | |
$template = "<VirtualHost *:80>\n"; | |
$template .= "ServerName {$argv[1]}\n"; | |
$template .= "DocumentRoot {$argv[2]}\n"; | |
$template .= "<Directory {$argv[2]}>\n"; | |
$template .= " Options Indexes FollowSymLinks MultiViews\n"; |
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 | |
/** | |
* Example in PHP 5.3 | |
*/ | |
class Meta | |
{ | |
private $methods = array(); | |
public function addMethod($methodName, $methodCallable) |
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/bash | |
echo "=======================================================================================" | |
echo "Fixing code standard" | |
echo "=======================================================================================" | |
php-cs-fixer fix $PWD/src/ | |
echo "Ok done ;)" | |
echo "" | |
echo "=======================================================================================" | |
echo "Lets see the mess in our code" | |
echo "=======================================================================================" |
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 | |
trait MetaTrait | |
{ | |
private $methods = array(); | |
public function addMethod($methodName, $methodCallable) | |
{ | |
if (!is_callable($methodCallable)) { | |
throw new InvalidArgumentException('Second param must be callable'); |
OlderNewer