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
(ns hiccup-html-spec.core | |
(:require [clojure.spec.alpha :as s] | |
[phrase.alpha :refer [defphraser phrase-first phrase]])) | |
;;GOALS | |
;;- spec a valid dom hiccup | |
;;- have errors like React for | |
;; . invalid descendant -> "<div> cannot appear as a descendant of <p>" | |
;; . unknown tag -> "The tag <divv> is unrecognized in this browser" | |
;; . void element -> "img is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`" |
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
#!/bin/bash | |
# | |
# script which reads and outputs DS18S20 temperature reading | |
# assuming: | |
# modules w1-gpio and w1-therm loaded into kernel | |
# | |
# example - if your DS18S20 id is 28-000001b451d9, then | |
# to get it's temperature reading in Celsius use: | |
# DS18S20 28-000001b451d9 | |
# |
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
#!/bin/bash | |
# | |
# simple script to upload one value to one channel on xively.com | |
# | |
# exaple to upload value "23.4" to channel "temperature" use: | |
# xively temperature 23.4 | |
# | |
# example to upload value "runnig" to channel "status" use escaping: | |
# xively status \"running\" | |
# |