View non_blocking_process_pipe_linux.cpp
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>; |
View dht11.c
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 |
View BusinessDayCalculator.php
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: |