Skip to content

Instantly share code, notes, and snippets.

View coyotesqrl's full-sized avatar

R.A. Porter coyotesqrl

View GitHub Profile
@coyotesqrl
coyotesqrl / xtdb-inclusions-exclusions
Created May 3, 2023 00:02
Example XTDB queries with tag inclusions and exclusions
(ns scratch
(:require [xtdb.api :as xt])
(:import (java.util UUID)))
(def node (xt/start-node {}))
(defn- put-articles []
(for [lev ["intro" "intermediate" "advanced"]
lan ["java" "clojure" "python"]
:let [url (str "http://foo.bar/" lev "-" lan)
@coyotesqrl
coyotesqrl / word_freq.clj
Last active July 29, 2022 16:09
Hacked together word frequency counter
(ns coyotesqrl.word-freq
(:require [clojure.java.io :as io]
[clojure.string :as str]))
(defn line-freq [l]
(->> (str/split l #"\W+")
(map str/lower-case)
(frequencies)))
(defn word-freqs [f]

Keybase proof

I hereby claim:

  • I am coyotesqrl on github.
  • I am coyotesqrl (https://keybase.io/coyotesqrl) on keybase.
  • I have a public key ASCpRQabdZyl4qLXkammm1wCwq5NAF8IC5I7tM7s5sZzQgo

To claim this, I am signing this object: