Skip to content

Instantly share code, notes, and snippets.

Avatar
❤️
Tech & The World

Joel Quiles teh0xqb

❤️
Tech & The World
View GitHub Profile
@teh0xqb
teh0xqb / init.el
Created Apr 15, 2020 — forked from mowat27/init.el
Emacs config for clojure + cider + paredit + auto-complete
View init.el
(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
@teh0xqb
teh0xqb / gist:eb7dcd892805006b2db1567f4f0df1d3
Created May 2, 2019 — forked from aphyr/gist:3200862
Clojure message passing test
View gist:eb7dcd892805006b2db1567f4f0df1d3
(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
@teh0xqb
teh0xqb / ants.clj
Created Mar 26, 2017 — forked from michiakig/ants.clj
Clojure ant sim from Rich Hickey
View ants.clj
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 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