Skip to content

Instantly share code, notes, and snippets.

View Conaws's full-sized avatar

Conor White-Sullivan Conaws

View GitHub Profile
@Conaws
Conaws / multi.cljs
Last active December 19, 2016 01:44
(ns polya.multi
(:require
[reagent.core :as r])
(:require-macros
[devcards.core :refer [defcard-rg]]))
(defn multi [{:keys [highlight-class
placeholder
(ns undead.cards.svg.graph
(:require
[posh.core :as posh :refer [posh!]]
[re-com.core :as rc]
[cljs.pprint :refer [pprint]]
[datascript.core :as d]
[undead.cards.multi :as multi]
[undead.util :refer [truncate]]
[reagent.core :as r]
[clojure.set :as s]
(ns re-kindle.util
(:require [reagent.core :as r]))
(defmacro deftrack [name params* & body]
`(def ~name
(partial r/track (fn ~params* ~@body))))
;;; example-usage
@Conaws
Conaws / sliders.cljs
Last active May 20, 2017 14:51
CSS for Multiple Sliders using Re-Com
(ns devcards.sliders
(:require [re-com.core :as rc]
[reagent.core :as r])
(:require-macros
[devcards.core :as dc :refer [defcard-rg]]))
(def rangeatom (r/atom 50))
(def rangeatom2 (r/atom 5))
(defcard-rg sliders
(defproject re-kindle "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.229"]
[reagent "0.6.0"]
[binaryage/devtools "0.8.2"]
[secretary "1.2.3"]
[devcards "0.2.2"]
[cljsjs/firebase "3.5.3-0"]
[datascript "0.15.5"]
[posh "0.5.5"]
(ns devcards.re-kindle.dagtree
(:require [cljs-time.core :as time :refer [now]]
[clojure.set :as set]
[datascript.core :as d]
[posh.reagent :as posh :refer [posh!]]
[re-com.core :as rc]
[re-kindle.multi :as multi]
[re-kindle.util :refer [deref-or-value icon]]
[reagent.core :as r])
(:require-macros
(ns re-kindle.fire.router
(:require
[posh.reagent :as posh :refer [posh!]]
[datascript.core :as d]
[re-kindle.util :refer [safe]]
[re-kindle.fire.auth :refer [user]]
[cljs-time.format :as format]
[cljs.tools.reader.edn :as edn]
[re-kindle.fire.core :as core :refer [db-ref save]]
[cljs.core.async :as async]

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

(def devnagri-vowel-table
[
["अ" "a" "a" "a" "a" "a" "a"]
["आ" "ā" "ā" "A" ["A" "aa"] "aa" "A"]
["इ" "i" "i" "i" "i" "i" "i"]
["ई" "ī" "ī" "I" ["I" "ii"] "ii" "I"]
["उ" "u" "u" "u" "u" "u" "u"]
["ऊ" "ū" "ū" "U" ["U" "uu"] "uu" "U"]
["ए" "e" "ē" "e" "e" "e" "e"]
["ऐ" "ai" "ai" "ai" "ai" "ai" "E"]
@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"