Skip to content

Instantly share code, notes, and snippets.

View ccjoel's full-sized avatar
🌀
REPL'ing

Joel Quiles ccjoel

🌀
REPL'ing
View GitHub Profile
@ccjoel
ccjoel / init.el
Created April 15, 2020 16:35 — forked from mowat27/init.el
Emacs config for clojure + cider + paredit + auto-complete
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
(defvar my-packages '(clojure-mode
cider
paredit
auto-complete
highlight-parentheses
@ccjoel
ccjoel / gist:eb7dcd892805006b2db1567f4f0df1d3
Created May 2, 2019 20:19 — forked from aphyr/gist:3200862
Clojure message passing test
(ns messagepassing.core)
(import [java.util.concurrent LinkedTransferQueue])
(def m 10000000)
(defn queue-test []
(defn bounce [in out m]
(let [value (.take in)]
(if (< value m)
(do
@ccjoel
ccjoel / ants.clj
Created March 26, 2017 17:30 — forked from michiakig/ants.clj
Clojure ant sim from Rich Hickey
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
; which can be found in the file CPL.TXT at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; the terms of this license.
; You must not remove this notice, or any other, from this software.
;dimensions of square world