Skip to content

Instantly share code, notes, and snippets.

View anim_using_fiber.janet
(use ./build/jaylib)
(init-window 800 600 "Chart")
(set-target-fps 60)
(def current-animations @{})
borkdude / assoc_pairs.clj
Last active Apr 6, 2021
Reports number of used k/v pairs in assoc to gather data for
View assoc_pairs.clj
#!/usr/bin/env bash
#_" -*- mode: clojure; -*-"
"exec" "clojure" "-Sdeps" "{:deps {borkdude/grasp {:git/url \"\" :sha \"6315cea8c0b6dafc7b1eef9ccd03d6d5590d2045\"}}}" "-M" "$0" "$@"
(require '[ :as io]
'[clojure.spec.alpha :as s]
'[clojure.string :as str]
'[grasp.api :as g])
borkdude / script.clj
Last active Oct 29, 2020
Spec grep: find usages or reify in clojure.core with two or more interfaces. This idea has been implemented in a library now:
View script.clj
;; see for a more elaborate implementation
(ns script
(:require [ :as io]
[clojure.pprint :refer [pprint]]
[edamame.core :as e]))
(def clojure-core (slurp (io/resource "clojure/core.clj")))
(def parsed (e/parse-string-all clojure-core
{:all true :auto-resolve '{:current clojure.core}}))
View PR

Issues that welcome community contributions are labeled with PR welcome. That doesn't mean I don't welcome contributions for other issues. Feel free to reach out and discuss on Clojurians Slack or Github if you need assistance. Please note that I do not have the time or resources to give free and unlimited Clojure mentoring.


See issues


See issues

yogthos /
Last active Jun 23, 2021
Clojure beginner resources
bakpakin / utf8.janet
Last active Jan 24, 2021
Use pegs to parse utf8
View utf8.janet
### utf8.janet
### Pure janet utf8 utils. You should probably just use C.
(defn utf8-encode
"Convert a sequence of codepoints to a string."
(def buf @"")
mtnygard / deps.edn
Last active May 27, 2020 — forked from athos/deps.edn
Friendly REPL. Run with `clojure -Sdeps '{:deps {hello-clojure {:git/url "" :sha "774314af2d28261af4a52ac270136d5ba21ff046"}}}' -m frenpl`
View deps.edn
{:paths ["." "src" "test"]
:deps {expound {:mvn/version "0.8.4"}
clansi {:mvn/version "1.0.0"}
cider/cider-nrepl {:mvn/version "0.24.0"}
refactor-nrepl {:mvn/version "2.5.0"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}}
athos / deps.edn
Last active Jun 1, 2021
Try `clojure -Sdeps '{:deps {hello-clojure {:git/url "" :sha "1c9a05106171f97f9b8e8ac8f58c7bd8dbe021f9"}}}' -m hello-clojure` on your terminal
View deps.edn
{:paths ["."]
:deps {clansi {:mvn/version "1.0.0"}}}
reborg /
Last active Jun 21, 2021
A curated collection of answers that Rich gave throughout the history of Clojure

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link in the table of content jumps at the copy of the answer on this page.
  • The link on the answer itself points back at the original post.

Table of Content

View seesaw-repl-tutorial.clj
; A REPL-based, annotated Seesaw tutorial
; Please visit for more info
; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers
; Seesaw's basic features and philosophy, but only scratches the surface
; of what's available. It only assumes knowledge of Clojure. No Swing or
; Java experience is needed.
; This material was first presented in a talk at @CraftsmanGuild in
; Ann Arbor, MI.