Skip to content

Instantly share code, notes, and snippets.

View merlinblack's full-sized avatar
Working from home

Nigel Atkinson merlinblack

Working from home
View GitHub Profile
#include <vector>
#include <string>
#include <sstream>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
using StringVector = std::vector<std::string>;
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
merlinblack / BusinessDayCalculator.php
Last active February 9, 2022 05:01
Work out business days - ignoring holidays
use Carbon\Carbon;
* BusinessDayCalculator
* Computes date interval, or adds days to a date while
* skipping the weekend.
* NOT considered: