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
#include <vector> | |
#include <string> | |
#include <sstream> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
using StringVector = std::vector<std::string>; |
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
/** | |
Written 2021 by Nigel Atkinson because the predominantly found C example for | |
reading a DHT11 just did not work. | |
Greatly inspired by the Adafruit python library for DHT11 & DHT22, however | |
simplified and using the library wiringPi. | |
Adafruit write good code! :-) | |
Tested on a Raspberry Pi 2B r1.1 |
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 | |
use Carbon\Carbon; | |
/** | |
* BusinessDayCalculator | |
* Computes date interval, or adds days to a date while | |
* skipping the weekend. | |
* | |
* NOT considered: |