Skip to content

Instantly share code, notes, and snippets.

View Conaws's full-sized avatar

Conor White-Sullivan Conaws

View GitHub Profile

For a while, I thought that our modern culture's relationship to science best resembled the Catholic Church during the middle ages. Priests delivering sermons in Latin, indulgences, poor families of believers praying one of their sons would be bright enough for the clergy... Then I discovered the Druze.

"But when I asked him about the Druze faith, he gave me an unexpected reply. 'I know nothing about the Druze', the pre-eminent leader of the Druze declared with a violent wave of his arm. From his piles of books he selected a couple by Tariq Ali and gave them to me as gifts. He invited me to visit him at his palace in the mountains. And then he said goodbye. Either the most powerful Druze man in Lebanon, an intellectual in his own right, had been excluded from the teachings of his own religion, or else he knew better than to pass them on to an outsider. I had every intention of taking up his invitation to spend time among the Druze communities, but first I would have to find someone more willing to talk

;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@Conaws
Conaws / .zshrc
Last active May 15, 2022 09:38
42 fish helpers
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/nfs/2017/c/cwhite-s/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@Conaws
Conaws / motion.svg.foreign.cljs
Created July 18, 2016 07:37
An example of using reagent to embed a foreign object in an SVG, and making that object draggable
(ns motion.svg.foreign
(:require [reagent.core :refer [atom]])
(:require-macros
[devcards.core :as dc
:refer [defcard defcard-doc defcard-rg deftest]]))
(defonce position1
(atom {:state {:x 1 :y 1} :rwidth 200 :rheight 100 :moving false :start {:x 1 :y 1}}))
(ns cards.sortable
(:require [reagent.core :as reagent])
(:require-macros
[cljs.test :refer [is testing]]
[devcards.core :refer [defcard-rg deftest]]))
(defonce app-state (reagent/atom {:list (vec (take 11 "abcdefghijkl"))
:over -1
:dragging false}))
(ns history.motion
(:require [reagent.core :as rx ]
[posh.core :as rx-db :refer [pull transact!]]
[reagent.session :as session]
[re-frame.core :refer [register-sub subscribe dispatch register-handler]]
[re-frame.db :as rdb :refer [app-db]]
[datascript.core :as mdb ]
[cljs.reader ]
[clojure.string :as str ])
(:require-macros
#bso .nav {justify-content: space-between
backface-visiblibility: hidden;
}
#bso .nav__dropdown {
height: 300px;
color: grey;
background-color: red;
/* transition: height 1s; */
(ns undead.cards.multi
(:require
[posh.core :as posh :refer [posh!]]
[cljs.pprint :refer [pprint]]
[re-com.core :as rc :refer [v-box box input-text h-box]]
[datascript.core :as d]
[undead.util :refer [deref-or-value]]
[clojure.string :as str]
[reagent-forms.core :refer [bind-fields]]
[reagent.core :as r]
(ns undead.cards.poem
(:require
[goog.i18n.DateTimeFormat :as dtf]
[posh.core :as posh :refer [posh!]]
[reagent-table.core :as rt]
[cljs-time.core :as time :refer [now]]
[keybind.core :as keys]
[cljs.pprint :refer [pprint]]
[undead.cards.multi :as multi]
[datascript.core :as d]
(ns history.parser
(:require [instaparse.core :as insta]
[debux.core :as dbg]
[history.util :refer [defc p makeInt]]
[clojure.pprint :refer [pprint] :as pp]
[clojure.string :as str]
[clojure.core.async :as async :refer [>! go go-loop <! <!! chan put!]]))
(defn filter-ke-tree