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 claratest.core | |
(:require [clara.rules :refer :all])) | |
(def clara_session (atom nil)) | |
(defquery get-all-run-request | |
"query to get all fact of type RunRequest" | |
[] | |
[?a <- :RunRequest]) |
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 clara-project.core | |
(:require [clara.rules.accumulators :as acc] | |
[clara.rules :refer :all])) | |
(defrecord SupportRequest [client]) | |
(defrule get-var1 | |
"SupportRequest count var1" | |
[?var1 <- (acc/count) :from [ SupportRequest]]) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
We are using node.js <script>document.write(process.version)</script>. | |
<script> | |
require('nw.gui').Window.get().showDevTools(); |
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 project-name.core) | |
(defn foo | |
"I don't do a whole lot." | |
[x] | |
(println x "Hello, World!")) |