I hereby claim:
- I am verma on github.
- I am verma (https://keybase.io/verma) on keybase.
- I have a public key whose fingerprint is 0527 6336 3D96 49AB F346 8C67 DB8F 7A5B 09C2 A80C
To claim this, I am signing this object:
var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup; | |
var EmailWidget = React.createClass({ | |
getInitialState: function() { | |
return { | |
buttonEnabled: false | |
}; | |
}, |
(dom/div #js {:className "col-sm-2 tag-button-container"} | |
(dom/button #js {:className "btn btn-default btn-lg tag-item-action" | |
:type "button" | |
:dataToggle "modal" | |
:dataTarget "#tagsModal"} "Tag")) |
om/IWillMount | |
(will-mount [_] | |
(go (loop [] | |
(let [file (<! modal-chan)] | |
(log "The user wants to tag " file) | |
(log "Tags are", tags) | |
(log "owner is", owner) | |
(log "state is", (om/get-state owner)) | |
(om/set-state! owner :target file) | |
(.modal ($ (om/get-node owner)) "show")) |
I hereby claim:
To claim this, I am signing this object:
#include <emscripten/bind.h> | |
using namespace emscripten; | |
class LASZip { | |
public: | |
LASZip() {} | |
void open(const char *buf, size_t len) { | |
printf("Got buffer: %p, size: %i", buf, len); | |
} |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> | |
</head> |
/Users/verma/work/laz-perf/examples/readlaz.cpp:19:4: error: use of undeclared identifier 'FS' | |
FS.mkdir('/files'); | |
^ | |
/Users/verma/work/laz-perf/examples/readlaz.cpp:19:13: warning: multi-character character constant [-Wmultichar] | |
FS.mkdir('/files'); | |
^ | |
/Users/verma/work/laz-perf/examples/readlaz.cpp:19:13: warning: character constant too long for its type | |
/Users/verma/work/laz-perf/examples/readlaz.cpp:20:4: error: use of undeclared identifier 'FS' | |
FS.mount(NODEFS, { root: '.' }, '/files'); | |
^ |
;; walk-root walks the root node to a child node on firebase, e.g. /hello -> /hello/child/node | |
;; (walk-root root-node [:child :node]) | |
;; bind is used like: | |
;; (bind root-node :value [:child :node] #(println "Changed to" %)) | |
;; | |
;; (let [c (bind root-node :value [:child :node])] | |
;; (go-loop [m (<! c)] | |
;; (println "Changed to" m) | |
;; (recur (<! c)))) |
(defmacro bind-handlers [type node cb & specs] | |
(let [attacher (if (= type :value) | |
'addValueEventListener | |
'addChildEventListener)] | |
`(cond | |
~@(for [[matchtype iface handler] specs] | |
(list | |
`(= ~type ~matchtype ) | |
`(. ~node ~attacher (reify ~iface | |
(~handler [this v] |
;; How I am requiring the macros: | |
;; core.cljs | |
(ns pre-k-adventures.core | |
(:require [pre-k-adventures.util :as util] | |
[cljs.core.match]) | |
(:require-macros [cljs.core.match.macros :refer [match]] | |
[pre-k-adventures.macros :refer [offset-rand]])) | |
;; usage some where in core.cljs | |
;; |