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
#error{:cause "Implementing class", | |
:via [{:type clojure.lang.Compiler$CompilerException, | |
:message "java.lang.IncompatibleClassChangeError: Implementing class, compiling:(C:/Users/dave/Projects/Compute/metrics-kafka-connector/test/compute/metrics_kafka_connector_test.clj:1:1)", | |
:at [clojure.lang.Compiler load "Compiler.java" 7526]} | |
{:type java.lang.IncompatibleClassChangeError, | |
:message "Implementing class", | |
:at [java.lang.ClassLoader defineClass1 "ClassLoader.java" -2]}], | |
:trace [[java.lang.ClassLoader defineClass1 "ClassLoader.java" -2] | |
[java.lang.ClassLoader defineClass "ClassLoader.java" 763] | |
[java.security.SecureClassLoader defineClass "SecureClassLoader.java" 142] |
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
{ | |
"legends": [ | |
{ | |
"fill": "color", | |
"type": "gradient" | |
} | |
], | |
"config": { | |
"range": { | |
"heatmap": { |
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 provisdom.examples.truth-maintenance | |
(:require [clojure.spec.alpha :as s] | |
[provisdom.maali.rules :refer [defrules defqueries defsession def-derive] :as rules] | |
[clara.rules.accumulators :as acc] | |
[clojure.pprint :refer [pprint]])) | |
;;; Attribute specs | |
(s/def ::location string?) | |
(s/def ::temperature number?) | |
(s/def ::high ::temperature) |
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 freactive-sandbox.rx-test | |
(:require-macros [freactive.macros :refer [rx debug-rx]]) | |
(:require [freactive.core :refer [atom cursor lens-cursor]] | |
[freactive.dom :as dom])) | |
(enable-console-print!) | |
(def state (atom {:a 1 :b {:c 2 :d 3}})) | |
(def lc | |
(lens-cursor state :b)) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="import" href="/paper-slider/paper-slider.html"> | |
</head> | |
<body> | |
<div> | |
<style type="text/gss"> | |
#d1 { |
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 freactive-sandbox.rx-test | |
(:require-macros [freactive.macros :refer [rx debug-rx]]) | |
(:require [freactive.core :refer [atom cursor]] | |
[freactive.dom :as dom])) | |
#_(enable-console-print!) | |
(def state (atom {:a 1 :b {:c 2 :d 3}})) | |
(def b (cursor state :b)) | |
(def d (cursor state [:b :d])) |
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 freactive-sandbox.core-test | |
(:require-macros [freactive.macros :refer [rx]]) | |
(:require [freactive.core :refer [atom cursor]])) | |
(enable-console-print!) | |
(def x (atom {:a 1 :b {:c 2 :d 3}})) | |
(def b (cursor x | |
(fn [x] (:b x)) |
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 allgress.datascript.util | |
(:require [clojure.walk :refer [postwalk]])) | |
;;; Datomic pull API will return :db/idents as references, like {:my-enum-att {:db/ident :enum-value}}. | |
;;; This function replaces with the Datascript equivalent {:my-enum-att :enum-value}. Only works | |
;;; for true "enums", whose only attribute in the entity map is :db/ident. | |
defn replace-enum-refs [entity-map] | |
(postwalk | |
(fn [arg] | |
(if (and (coll? arg) (map? (second arg)) (= 1 (count (second arg))) (contains? (second arg) :db/ident)) |