CSSグリッドレイアウトで、サイズが違う複数のボックスをタイル状に配置する|Webクリエイターボックス http://www.webcreatorbox.com/tech/css-grid-layout/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def <== (comp deref re-frame/subscribe)) | |
(defn data-tableau [] | |
"Heads up display for the database. " | |
(let [data (subscribe [::subs/tableau])] | |
[:div.data-tableau (pr-str @data)])) | |
;; what i'd like to do is | |
(defn data-tableau [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns clojureapplied.ch1.validate | |
(:require [schema.core :as s])) | |
(s/defrecord Ingredient | |
[name :-s/Str | |
quantity :-s/Int | |
unit :-s/Keyword]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns d-c.events | |
(:require [d-c.db :as db] | |
[re-frame.core :refer [dispatch reg-event-db reg-event-fx reg-sub]] | |
[ajax.core :refer [GET POST PUT]])) | |
;;dispatchers | |
(reg-event-db | |
:initialize-db | |
(fn [_ _] | |
db/default-db)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(reg-event-fx | |
:create-user | |
(fn [_ [_ user]] | |
{:http {:method POST | |
:url "/register" | |
:ajax-map {:params user}}})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(reg-event-fx | |
:create-user | |
(fn [_ [_ user]] | |
{:http {:method POST | |
:url "/register" | |
:ajax-map {:params user}}})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def active-page? | |
(fn [ap] | |
(keyword-identical? ap (get db/default-db :active-panel)))) | |
(def menu-items [:celestial-panel :universe-panel]) | |
(def menu-list (filter active-page?)) | |
(transduce menu-list conj menu-items) |
I 'm fleshing out some of these ideas here: https://github.com/lynaghk/todoFRP/tree/master/todo/angular-cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Cyberpunk Colour Theme | |
;; | |
;; "and he'd still see the matrix in his sleep, bright lattices of logic | |
;; unfolding across that colorless void..." | |
;; William Gibson, Neuromancer. | |
;; | |
(require 'color-theme) | |
;;;###autoload |
NewerOlder