Skip to content

Instantly share code, notes, and snippets.

View ksseono's full-sized avatar

Seonho Kim ksseono

View GitHub Profile
@timothyrenner
timothyrenner / gorilla-to-markdown.clj
Created December 5, 2015 14:07
Gorilla To Markdown
(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)
@akiatoji
akiatoji / Clojure_on_RaspberryPi_OSX.md
Last active December 3, 2022 21:15
Running Clojure on Raspberry Pi with OS X

Clojure on Raspberry Pi with OS X

"Clojure running on Raspberry Pi" sounded so cool that I just had to give it a try.

Install JDK

  • Download ARM JDK from Oracle and instlal on Raspberry Pi
  • Change visudo to contain the following
@gamma235
gamma235 / joc-logic.clj
Last active July 30, 2021 06:37
Joy of Clojure, updated core.logic examples
(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}