"Clojure running on Raspberry Pi" sounded so cool that I just had to give it a try.
- Download ARM JDK from Oracle and instlal on Raspberry Pi
- Change visudo to contain the following
(ns gorilla-to-markdown.core | |
(:require [clojure.string :as str] | |
[cheshire.core :as json])) | |
(defn- process-output-json | |
"Builds the HTML from the output JSON. | |
Assumes the JSON has already been parsed, and that j is a map." | |
[j] | |
(case (:type j) | |
"html" (:content j) |
(ns logic.core | |
(:require [clojure.core.logic.pldb :as pldb] ;; facts are now stored in a logic database which requires the pldb ns | |
[clojure.core.logic.fd :as fd] ;; for constraint programming, no need to include include in project.clj | |
[clojure.core.logic :refer :all :exclude [record?]])) ;; I left out ":as :logic" for aesthetics | |
(run* [answer] | |
(== answer 5)) | |
(run* [val1 val2] | |
(== {:a val1, :b 2} |