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
| alias: HA core auto-update | |
| description: Update HA core if there is a patch update | |
| mode: single | |
| trigger: | |
| - platform: time | |
| at: "03:00:00" | |
| condition: | |
| - condition: state | |
| entity_id: update.home_assistant_core_update | |
| state: "on" |
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
| substitutions: | |
| IRtoIL_red: 683.0 * 0.6 | |
| IRtoIL_green: 683.0 * 0.8 | |
| IRtoIL_blue: 683.0 * 0.075 | |
| sensor: | |
| - id: clearirradiance | |
| name: "Clear Irradiance" | |
| platform: apds9960 | |
| type: CLEAR |
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
| (ns graph | |
| (:require | |
| [clj-kondo.core :as kondo] | |
| [clojure.string :as str] | |
| [dorothy.core :as dot])) | |
| (def kondo-output | |
| (kondo/run! {:lint ["/Users/bjebb/Development/decide3/src/main/decide"] | |
| :config {:output {:analysis 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
| (fn paths [m] | |
| (reduce-kv | |
| (fn [acc k v] | |
| (into acc | |
| (map vec) | |
| (if (and (associative? v) (not (empty? v))) | |
| (map | |
| #(cons k %) | |
| (paths v)) | |
| [[k]]))) |
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
| 0x00007fc031b04080 STATUS_IN_JAVA (PREVENT_VM_FROM_REACHING_SAFEPOINT) " | |
| clojure-agent-send-off-pool-1" - 0x00000001164014a0, stack( | |
| 0x0000700008e45000,0x0000 | |
| 700008ec5000) | |
| 0x00007fc031a04080 | |
| STATUS_IN_SAFEPOINT (ALLOW_SAFEPOINT) "clojure-agent-send-off-pool-0" - 0x0000 | |
| 000116401810, stack(0x0000700008dc2000, | |
| 0x0000700008e42000) | |
| 0x0 |
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
| (ns check-sci-compat | |
| (:require | |
| [clojure.string :as str] | |
| [sci.core :as sci] | |
| [clojure.pprint :as pprint])) | |
| (def clojure-built-in-nss | |
| (->> (all-ns) | |
| (map str) | |
| (filter #(str/starts-with? % "clojure")) |
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
| const NUMBER_RE = /[-+]?(((0[xX][0-9a-fA-F]+|0[0-7]+|[1-9][0-9]?[rR][0-9a-zA-Z]+)N?)|[0-9]+(\/[0-9]+|N|((\.[0-9]*)?([eE][+-]?[0-9]+)?M?)))/ |
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
| (defmulti check-access! (fn [_env [k v]] k)) | |
| (defmethod check-access! :decide.models.proposal/id | |
| [env input] | |
| ; Add code to check access and add input to access-cache | |
| false) | |
| (defmethod check-access! :default [_ _] true) | |
| (defn has-access? [env input] | |
| (or | |
| (contains? @(:access-cache env) input) |
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
| <html> | |
| <head> | |
| <style> | |
| .module-typing-animation { | |
| display: inline-flex; | |
| flex-direction: row; | |
| align-items: center; | |
| height: 8px; | |
| width: 38px; |
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
| (ns decide.server-components.pathom | |
| (:require | |
| [com.wsscode.pathom.connect :as pc] | |
| [com.wsscode.pathom.core :as p])) | |
| (pc/defresolver my-example [_ {r :r}] | |
| {::pc/input #{:r} | |
| ::pc/output [:r | |
| {:x [:r]}]} | |
| (if (< r 5) |