Skip to content

Instantly share code, notes, and snippets.

View ponzao's full-sized avatar

Vesa Marttila ponzao

  • Helsinki, Finland
View GitHub Profile
@stuarthalloway
stuarthalloway / Datomic News Updates
Created June 18, 2012 14:53
Datomic update examples against a social news database
;; Datomic example code
;; demonstrates various update scenarios, using a news database
;; that contains stories, users, and upvotes
;; grab an in memory database
(use '[datomic.api :only (q db) :as d])
(def uri "datomic:mem://foo")
(d/create-database uri)
(def conn (d/connect uri))
@gigasquid
gigasquid / mary.clj
Created February 6, 2013 14:02
Mary had a little lamb in overtone
(ns overtone-tutorial.mary)
(use 'overtone.core)
(boot-external-server)
(definst saw-wave [freq 440 attack 0.01 sustain 0.4 release 0.1 vol 0.4]
(* (env-gen (lin-env attack sustain release) 1 1 0 1 FREE)
(saw freq)
vol))
(ns spreads
(:use zeder))
(def legal-cards
[:๐Ÿ‚ก :๐Ÿ‚ฑ :๐Ÿƒ :๐Ÿƒ‘
:๐Ÿ‚ข :๐Ÿ‚ฒ :๐Ÿƒ‚ :๐Ÿƒ’
:๐Ÿ‚ฃ :๐Ÿ‚ณ :๐Ÿƒƒ :๐Ÿƒ“
@opqdonut
opqdonut / deps.edn
Created June 1, 2022 11:31
Clojure structured logging via Log4J2
{:deps {org.apache.logging.log4j/log4j-api {:mvn/version "2.17.2"}
org.apache.logging.log4j/log4j-core {:mvn/version "2.17.2"}
org.apache.logging.log4j/log4j-layout-template-json {:mvn/version "2.17.2"}
org.apache.logging.log4j/log4j-slf4j18-impl {:mvn/version "2.17.2"}}}