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
| /** | |
| 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 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
| /** | |
| ****************************************************************************** | |
| * @file stm32f4xx.h | |
| * @author MCD Application Team | |
| * @brief CMSIS STM32F4xx Device Peripheral Access Layer Header File. | |
| * | |
| * The file is the unique include file that the application programmer | |
| * is using in the C source code, usually in main.c. This file contains: | |
| * - Configuration section that allows to select: | |
| * - The STM32F4xx device used in the target application |
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
| ./configure --prefix=/home/pi/.local --with-sound=yes --with-x-toolkit=yes --with-wide-int --with-cairo --with-modules --with-mailutils --with-x | |
| sudo apt-get update | |
| sudo apt install \ | |
| libx11-dev \ | |
| libtiff-dev \ | |
| libgtk2.0-dev \ | |
| libncurses-dev \ | |
| mailutils-imap4d \ |
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
| { stdenv, fetchurl, makeWrapper, buildFHSUserEnv }: | |
| let | |
| fhsEnv = buildFHSUserEnv { | |
| name = "esp8266-toolchain-env"; | |
| targetPkgs = pkgs: with pkgs; [ zlib ]; | |
| runScript = ""; | |
| }; | |
| in |
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
| { nixpkgs ? import <nixpkgs> {} }: | |
| let | |
| inherit (nixpkgs) pkgs; | |
| in | |
| pkgs.stdenv.mkDerivation { | |
| name = "esp8266-env"; | |
| buildInputs = with pkgs; [ | |
| gawk gperf gettext automake bison flex texinfo help2man libtool autoconf ncurses5 cmake |
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
| { stdenv, fetchurl, makeWrapper, buildFHSUserEnv }: | |
| let | |
| fhsEnv = buildFHSUserEnv { | |
| name = "esp32-toolchain-env"; | |
| targetPkgs = pkgs: with pkgs; [ zlib ]; | |
| runScript = ""; | |
| }; | |
| in |
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
| { nixpkgs ? import <nixpkgs> {} }: | |
| let | |
| inherit (nixpkgs) pkgs; | |
| in | |
| pkgs.stdenv.mkDerivation { | |
| name = "esp-idf-env"; | |
| buildInputs = with pkgs; [ | |
| cmake gawk gperf gettext automake bison flex texinfo help2man libtool autoconf ncurses5 cmake |
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
| module Git = | |
| open System | |
| open System.Diagnostics | |
| let private runCommand cmd args = | |
| let startInfo = new ProcessStartInfo() | |
| startInfo.FileName <- cmd | |
| startInfo.Arguments <- args | |
| startInfo.UseShellExecute <- false | |
| startInfo.RedirectStandardOutput <- true |
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
| [<AutoOpen>] | |
| module StateMachine = | |
| type State = | |
| | StateA | |
| | StateB | |
| | StateC | |
| | StateD | |
| | End |
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
| [<AutoOpen>] | |
| module Workflow = | |
| type State = Initial | Draft | PendingApproval | Approved | Cancelled | Completed | |
| type Action = Create | Cancel | SendForApproval | Approve | Reject | Complete | |
| type Role = Creator | Approver | Completor | |
| type Transition = { Action:Action; From:State; To:State; Roles:Role list } | |
| module Transitions = | |
| let create = { Action=Create; From=Initial; To=Draft; Roles=[ Creator ] } | |
| let cancel = { Action=Cancel; From=Draft; To=Cancelled; Roles=[ Creator ] } | |
| let sendForAppr = { Action=SendForApproval; From=Draft; To=PendingApproval; Roles=[ Creator ] } |
NewerOlder