How to set up multiple accounts with Mutt E-mail Client
Thanks to this article by Christoph Berg
Directories and files
~/
(ns plumbing.graph-async | |
(:require | |
[plumbing.fnk.pfnk :as pfnk] | |
[plumbing.fnk.schema :as schema] | |
[plumbing.core :as plumbing] | |
[plumbing.graph :as graph])) | |
;; async function has ^:async metadata, callback required key. | |
;; TODO: redo with just promises/futures once they have callback options | |
;; TODO: make nicer way to specify async fnks? |
Check out README.md to get started editing Clojure with Emacs. |
(ns martha.core | |
(:require [clojurewerkz.titanium.graph :as g] | |
[clojurewerkz.titanium.vertices :as v] | |
[clojurewerkz.titanium.edges :as e] | |
[clojurewerkz.titanium.types :as t] | |
[ogre.core :as q])) | |
(def conf {:storage {:backend "embeddedcassandra" | |
:hostname "127.0.0.1" | |
:keyspace "martha" |
(ns example.net | |
(:require [goog.net.WebSocket] | |
[goog.events :refer (listen)] | |
[cljs.core.async :as async :refer (chan <! >! put! close)] | |
[cljs.core.async.impl.protocols :as proto]) | |
(:require-macros [cljs.core.async.macros :refer (go)])) | |
(defn ws | |
"WebSocket as a core.async channel | |
returns a channel which delivers the ws chan then closes" |
(ns react-cljs.core | |
(:require-macros [cljs.core.async.macros :refer [go]]) | |
(:require [om.core :as om] | |
[om.dom :as dom :include-macros true] | |
[cljs.core.async :refer [>! <! chan put! sliding-buffer]])) | |
(enable-console-print!) | |
(def app-state | |
(atom {:counters (into [] (map (fn [n] {:id n :count 0}) (range 10)))})) |
Thanks to this article by Christoph Berg
Directories and files
~/
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
(ns views.infinite-scroll | |
(:require | |
[reagent.core :as r])) | |
(defn- get-scroll-top [] | |
(if (exists? (.-pageYOffset js/window)) | |
(.-pageYOffset js/window) | |
(.-scrollTop (or (.-documentElement js/document) | |
(.-parentNode (.-body js/document)) | |
(.-body js/document))))) |
# Sample configuration for dnsmasq to function as a proxyDHCP server, | |
# enabling LTSP clients to boot when an external, unmodifiable DHCP | |
# server is present. | |
# The main dnsmasq configuration is in /etc/dnsmasq.conf; | |
# the contents of this script are added to the main configuration. | |
# You may modify the file to suit your needs. | |
# Don't function as a DNS server: | |
port=0 |