Skip to content

Instantly share code, notes, and snippets.

{:shared {:clean-targets ["out" :target-path]}
:tdd [:shared
{:cljsbuild
{:builds {:kanfold
{:compiler
{:optimizations :whitespace
:pretty-print true}}}}}]
:dev {:resources-paths ["dev-resources"]
kanfold.core> (dom/div nil {})
"Error evaluating:" (dom/div nil {}) :as "React.DOM.div(null,cljs.core.PersistentArrayMap.EMPTY);\n"
#<ReferenceError: React is not defined>
ReferenceError: React is not defined
at eval (repl-1411012287660.js:1:65)
at eval (repl-1411012287660.js:5:3)
at http://localhost:38015/9107/repl/start:1771:343
at clojure.browser.repl.evaluate_javascript (http://localhost:38015/9107/repl/start:1772:260)
at Object.callback (http://localhost:38015/9107/repl/start:1780:109)
at goog.messaging.AbstractChannel.deliver (http://localhost:38015/9107/repl/start:1578:270)
(defun ert-runner/run (&rest tests)
(unless (f-dir? ert-runner-test-path)
(error (ansi-red "No test directory. Create one using `ert-runner init`")))
(ert-runner/use-reporter ert-runner-reporter-name)
(let* ((el-tests-fn
(lambda (file)
(if tests
(--any? (s-ends-with? it file) tests)
(s-matches? "-test\.el$" file))))
(test-files (f-files (f-expand ert-runner-test-path) el-tests-fn))
;;; Gets me there iff. there is only one of these patterns in the buffer.
"///
+\(.\|
\)+///"
Sep 5 16:13:51 matt-x230 kernel: [32465.348419] BUG: unable to handle kernel paging request at ffffcd03e6809004
Sep 5 16:13:51 matt-x230 kernel: [32465.349421] IP: [<ffffffff811d5780>] __d_lookup_rcu+0x80/0x160
Sep 5 16:13:51 matt-x230 kernel: [32465.350330] PGD 0
Sep 5 16:13:51 matt-x230 kernel: [32465.351211] Oops: 0000 [#8] SMP
Sep 5 16:13:51 matt-x230 kernel: [32465.352221] Modules linked in: hid_generic usbhid hid usb_storage xt_addrtype xt_conntrack ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack bridge stp llc aufs iptable_filter ip_tables x_tables ctr ccm pci_stub vboxpci(OF) vboxnetadp(OF) vboxnetflt(OF) vboxdrv(OF) uvcvideo videobuf2_vmalloc videobuf2_memops snd_usb_audio videobuf2_core snd_usbmidi_lib videodev rt2800usb rt2x00usb rt2800lib rt2x00lib crc_ccitt intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_hda_codec_hdmi kvm arc4 snd_hda_codec_realtek bnep rfcomm snd_hda_intel bluetooth snd_hda_codec snd_hwdep iwldvm mac8021
/** @jsx React.DOM */
var Avatar = React.createClass({
render: function() {
return (
<div>
<ProfilePic username={this.props.username} />
<ProfileLink username={this.props.username} />
</div>
);
[core]
editor = emacs
excludesfile = ~/.gitignore_global
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((nil
(python-environment-directory . "~/Envs"))
(python-mode
(jedi:environment-virtualenv
(quote ("virtualenv" "--system-site-packages" "--quiet" "--python"
"/home/matt/Envs/api/bin/python")))
(jedi:environment-root . "api")))
'((empty)
(pass (pass))
(root (empty)
(body))
(body (line body1))
(body1 (empty)
(body3))
(body2 (body4)
(terminator))
(body3 (body2 body1))
[0] _empty ::=
[1] Root ::= _empty | Body
[2] Body ::= Line _Body_1
[2.1] _Body_1 ::= _empty | _Body_3
[2.3] _Body_3 ::= _Body_2 _Body_1
[2.2] _Body_2 ::= _Body_4 | TERMINATOR
[2.4] _Body_4 ::= TERMINATOR Line
[3] Line ::= Expression | Statement
[4] Statement ::= Return | Comment | STATEMENT
[5] Expression ::= Value