Skip to content

Instantly share code, notes, and snippets.

@jamak
jamak / Clojure
Created June 24, 2012 16:45 — forked from stuarthalloway/Datomic News Updates
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))
@jamak
jamak / jam.cc
Created September 16, 2011 08:28 — forked from elcerdo/jam.cc
traffic jam
#include <cassert>
#include <sstream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <list>
using std::endl;
using std::cout;