Skip to content

Instantly share code, notes, and snippets.

View mattsfrey's full-sized avatar

Matt Frey mattsfrey

View GitHub Profile
@mattsfrey
mattsfrey / gist:c2eb85d5f1b3d891f7943f84dc783dc8
Created May 18, 2016 14:19
Reagent remounting continuously
(defn import-panel []
(let [abs- (abd/abs-)]
(fn []
[:div {:style {:margin-top "40px"
:width "100%"
:max-width "800px"
:min-width "400px"}}
[:div {:style {:margin-left "4px"
:font-size "11px"
:letter-spacing "1.4px"
@mattsfrey
mattsfrey / data.cljs
Last active July 25, 2016 19:04
Re-Frame Example
;;;DATA
(ns data
(:require [re-frame.db :refer [app-db]]
[reagent.atom :as ra :include-macros true]
[re-frame.core :as rf]))
(defn show-box?- []
(ra/reaction (get-in @app-db [:show-box?])))

Keybase proof

I hereby claim:

  • I am mattsfrey on github.
  • I am mattsfrey (https://keybase.io/mattsfrey) on keybase.
  • I have a public key ASA8cCvFF8RnnFaFFt2QTtdhqCEnzSvvj3Ak8T28tWvmogo

To claim this, I am signing this object: