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 | |
/** | |
* Facebook Hacker Cup 2014 Qualification Round | |
* | |
* Square detector | |
* | |
* @author Alfonsas Cirtautas | |
*/ | |
// Read data |
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
# crontab -e | |
# Every work day at 8:30 am | |
30 8 * * 1,2,3,4,5 /home/pi/bin/tvon.sh | |
# Every work day at 18:30 pm | |
30 18 * * 1,2,3,4,5 /home/pi/bin/tvoff.sh |
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 | |
$data = include __DIR__.'/data.php'; | |
var_dump($data); |
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 | |
/** | |
* Facebook Hacker Cup 2013 Qualification Round | |
* | |
* Balanced Smileys | |
* | |
* @author Alfonsas Cirtautas | |
*/ | |
// Read data |
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 | |
/** | |
* Facebook Hacker Cup 2013 Qualification Round | |
* | |
* Beautiful strings | |
* | |
* @author Alfonsas Cirtautas | |
*/ | |
// Read data |
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 | |
$array = array('a', 'b', 'c'); | |
foreach($array as $value) { | |
echo $value; | |
} | |
echo PHP_EOL; | |
foreach($array as &$value) { |
NewerOlder