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 omtest) |
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 user | |
(:require [lt.object :as object])) | |
(set! *print-level* nil) | |
(println @object/instances) ;; => Exception: Maximum call stack size exceeded | |
(set! *print-level* 2) | |
(println @object/instances) ;; => nil |
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
### Keybase proof | |
I hereby claim: | |
* I am zk on github. | |
* I am zk (https://keybase.io/zk) on keybase. | |
* I have a public key whose fingerprint is 1919 5D42 1266 8387 015E 2A75 08FD C774 704D 6AA0 | |
To claim this, I am signing this object: |
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
# OSX 10.9.4 | |
# Leiningen 2.4.3 on Java 1.8.0_20 Java HotSpot(TM) 64-Bit Server VM | |
# Leiningen installed via Homebrew | |
# clojure.tools version 0.2.3 | |
$ lein repl | |
nREPL server started on port 52020 on host 127.0.0.1 - nrepl://127.0.0.1:52020 | |
REPL-y 0.3.2, nREPL 0.2.0-beta5NoSuchMethodError clojure.tools.nrepl.StdOutBuffer.length()I clojure.tools.nrepl.middleware.session/session-out/fn--7630 (session.clj:43)NoSuchMethodError clojure.tools.nrepl.StdOutBuffer.length()I clojure.tools.nrepl.middleware.session/session-out/fn--7630 (session.clj:43)Exception in thread "nREPL-worker-0" java.lang.NoSuchMethodError: clojure.tools.nrepl.StdOutBuffer.length()I | |
at clojure.tools.nrepl.middleware.session$session_out$fn__7630.doInvoke(session.clj:43) | |
at clojure.lang.RestFn.invoke(RestFn.java:460) |
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
Applying: iniitial | |
Applying: stage setting WIP | |
Applying: Project dev setup | |
Applying: Main page search WIP | |
Applying: Ellipsis ac docstrings | |
Applying: Manually add special forms to autocomplete | |
Applying: Ignore gen'd css files | |
Applying: Quickref / copy wip | |
Applying: Added search, quickref WIP | |
Applying: Quickref WIP |
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
Conversation.where(:$or => [ | |
{ | |
:$and => [ | |
{:sender_id => current_user.id}, | |
{:recipient_id => {:$in => reviewer_ids}} | |
] | |
}, | |
{ | |
:$and => [ | |
{:sender_id => {:$in => reviewer_ids}}, |
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
Conversation.where({ | |
:$and => [ | |
{:sender_id => current_user.id}, | |
{:recipient_id => {:$in => reviewer_ids}} | |
] | |
}) | |
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
java.io.IOException: Couldn't delete /Users/zk/.boot/tmp/Users/zk/napplelabs/endup/bx9/-p9hf6h/vee/images.cljs | |
clojure.java.io/delete-file io.clj: 426 | |
... | |
boot.file/delete-file file.clj: 39 | |
boot.file/sync! file.clj: 174 | |
... | |
clojure.core/apply core.clj: 628 | |
boot.core/sync-user-dirs!/fn core.clj: 110 | |
boot.core/sync-user-dirs! core.clj: 109 | |
boot.core/set-user-dirs!/on-change core.clj: 147 |
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
cd /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/ | |
sudo mkdir bundle | |
cd bundle | |
sudo mkdir Libraries | |
cd Libraries | |
sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre/lib/server/libjvm.dylib libserver.dylib |
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
(defmacro with-temp-dir [dir & body] | |
`(when-let [temp-file# (java.io.File/createTempFile (.toString (java.util.UUID/randomUUID)) "")] | |
(.delete temp-file#) | |
(.mkdirs temp-file#) | |
(when-let [temp-dir# (.getAbsolutePath temp-file#)] | |
((fn [~dir] | |
(let [res# (do ~@body)] | |
(clojure.contrib.io/delete-file-recursively temp-dir#) | |
res#)) temp-dir#)))) |
OlderNewer