Skip to content

Instantly share code, notes, and snippets.

@peter-wilkins
peter-wilkins / true-fdat.cljc
Created October 5, 2023 15:23
code for blog post: Durable Executions with Coffee Grinders
(ns true-fdat
(:require [cognitect.transit :as transit]
[dvlopt.fdat :as fdat :refer [?]]
[dvlopt.fdat.plugins.transit :as fdat.plugins.transit])
#?(:clj (:import [clojure.lang PersistentQueue])))
#_{:deps {dvlopt/fdat.plugins.transit {:mvn/version "0.0.0-beta3"}
com.cognitect/transit-clj {:mvn/version "1.0.333"}}}
; code for blog post: Durable Executions with Coffee Grinders
@peter-wilkins
peter-wilkins / main.rs
Created April 1, 2020 17:38
read a dht11 humidity sensor with a discovery f3
#![no_std]
#![no_main]
use crate::hal::{delay, gpio, prelude::*, stm32};
use cortex_m;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln;
use panic_halt as _;
use stm32f3xx_hal as hal;
use stm32f3xx_hal::rcc::RccExt;
@peter-wilkins
peter-wilkins / SketchSystems.spec
Created August 16, 2018 19:48
# cannot deploy when no companies or topics are staged
# cannot deploy when no companies or topics are staged
# deployCompaniesAndTopics only when atleast on topic is staged
# cannot start reprocessing job if one is already running
#
Reprocessing
Ready
deployCompaniesOnly -> Running
deployCompaniesAndTopics -> Running
Running
Swiper
Loading
loaded -> Description
Description
start -> Swiping
Swiping
finish -> Loading
swipeleft -> Swiping
$barf = '';
foreach ($array as $key => $value) {
if($value != NULL){
$barf .= ' ' . $key . ': ' . $value . PHP_EOL;
}
}
exit($barf);