Skip to content

Instantly share code, notes, and snippets.

View ThomasDeutsch's full-sized avatar

Thomas Deutsch ThomasDeutsch

View GitHub Profile
(ns scheduler.main.core
(:require [goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[datascript.core :as d]))
(enable-console-print!)
;; TASK:
(ns scheduler.main.core
(:require [goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[datascript.core :as d]))
(enable-console-print!)
;; TASK:
;; render ItemOne <OR> ItemTwo, based on the ":selected" ref of entity 0
(ns scheduler.main.core
(:require [goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[datascript.core :as d]))
(enable-console-print!)
;; TASK:
(ns scheduler.main.core
(:require [goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[datascript.core :as d]))
(enable-console-print!)
;; TASK:
(ns scheduler.main.core
(:require [goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[datascript.core :as d]))
(enable-console-print!)
;; TASK:
(ns om-tutorial.core
(:require [goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[datascript.core :as d]
[cljs.pprint :as pp :refer [pprint]]))
(enable-console-print!)
;; Tab-Menu scenario:
;; Show content based on a selected tab.
;; The reader is a simple datascript pull and :selected is a {:db/valueType :db.type/ref}.
;; Idea
;; If i could specify a component not to render if only a :db/id is received,
;; then i could simply pull and render - without the conditional logic in my render-fn.
(defn concat-queries [& args]
(ns om-tutorial.core
(:require
[goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[datascript.core :as d]
[om.dom :as dom]))
(enable-console-print!)
;; -----------------------------------------------------------------------------
(ns om-tutorial.core
(:require
[goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[datascript.core :as d]
[om.dom :as dom]
[cljs.pprint :as pprint]))
(enable-console-print!)
(ns scheduler.main.core
(:require ;; global
[goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[datascript.core :as d]
;[sablono.core :as html :refer-macros [html]]
;; scheduler
;[scheduler.devcards.testdata :as testdata]
;[scheduler.main.db :refer [conn mutate read]]
;[scheduler.main.placement :refer [placement Placement]]