Skip to content

Instantly share code, notes, and snippets.

Marcus Lewis mrcslws

Block or report user

Report or block mrcslws

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mrcslws / .block
Last active Mar 17, 2017
d3-zoom: You must position your rect with "transform"
View .block
license: gpl-3.0
mrcslws / .block
Last active May 7, 2019 — forked from mbostock/.block
Pan & Zoom Axes
View .block
license: gpl-3.0
mrcslws / om-state-and-ref-cursors
Created Feb 17, 2015
Demonstrating how ref-cursors + state can combine to cause double-renders
View om-state-and-ref-cursors
(ns om.repro.state-and-ref-cursors
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(defonce app-state (atom {:foo {}}))
(defn animating-component [app owner]
(did-update [_ _ _]
mrcslws / om-stale-cursors
Last active Aug 29, 2015
Demonstration that Om cursors can quietly dereference to someone else's path. If you quickly move your mouse over this list of names, the assert fails, because you switch up the app-state indices and then cause another event before a render updates the paths.
View om-stale-cursors
(ns explore-om.stalecursors
(:require-macros [cljs.core.async.macros :refer [go-loop]])
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[cljs.core.async :refer [put! chan <!]]))
;;; Sample code from
(def app-state
You can’t perform that action at this time.