Skip to content

Instantly share code, notes, and snippets.

View Conaws's full-sized avatar

Conor White-Sullivan Conaws

View GitHub Profile
;; -*- 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
* Morning pages
:LOGBOOK:
CLOCK: [2018-01-18 Thu 18:39]--[2018-01-19 Fri 14:06] => 19:27
:END:
Writing out the answers isn't enough to get me into a proper flow state. I'm feeling tired right now and sort of wishing I hadnt gone to the gym before diving into writing. But there are the specific questions that need to be answered in text.
[[What is wrong with the paragraph]]
@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"
(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"]

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

(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]
(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
(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"]
@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
(ns re-kindle.util
(:require [reagent.core :as r]))
(defmacro deftrack [name params* & body]
`(def ~name
(partial r/track (fn ~params* ~@body))))
;;; example-usage