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 | |
$dom = new DOMDocument; // create new DOMDocument instance | |
$dom->load('books.xml'); // load DOMDocument with XML data | |
$dit = new RecursiveIteratorIterator( | |
new RecursiveDOMIterator($dom), | |
RecursiveIteratorIterator::SELF_FIRST); |
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
class Task { | |
public: | |
Task (boolean on, int frequency) { | |
_on = on; | |
_frequency = frequency; | |
_nextTick = millis(); | |
} | |
virtual void runTask () = 0; | |
void checkTask() { | |
int time = millis(); |