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
(use '[caribou.config :only (configure)]) | |
(def default-config | |
{ | |
:debug true | |
:use-database true | |
:halo-enabled true | |
:halo-prefix "/_halo" | |
:halo-key "9i209idfs09ugf0d9ug0fdsu09fdgis90dfgiigf0d-sgj0d9fgim,f09dgk" | |
:database { |
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
** thejourney site dir | |
[rroemmich@jambalaya:~/projects/thejourney-app/site]$ lein repl | |
nREPL server started on port 55548 | |
Welcome to REPL-y! | |
Clojure 1.3.0 | |
Exit: Control+D or (exit) or (quit) | |
Commands: (help) | |
Docs: (doc function-name-here) | |
(find-doc "part-of-name-here") |
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
user=> (with-redefs [db/query (constantly [{:id 123 :slug "TEST THIS YO"}])] (db/query "select * from page")) | |
[{:slug "TEST THIS YO", :id 123}] |
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
(defn cycling-generator | |
[items] | |
(let [items-cycle (cycle items) | |
remaining (atom items-cycle)] | |
(fn [] | |
(let [cur (first @remaining)] | |
(dosync | |
(swap! remaining rest)) | |
cur)))) |
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 ralfonso on github. | |
* I am rroemmich (https://keybase.io/rroemmich) on keybase. | |
* I have a public key whose fingerprint is DB20 2B16 1738 5AB1 B6AE A9CE 1D49 1258 2CAD 66E2 | |
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
➜ make | |
make -C proto protoc | |
make[1]: Entering directory '/home/r2/code/ext/go-ipam/proto' | |
docker run --rm \ | |
--entrypoint sh \ | |
-v /home/r2/code/ext/go-ipam/proto/..:/workspace \ | |
-w /workspace/proto \ | |
bufbuild/buf:1.14.0 \ | |
-c "buf format -w api/v1 && chown -R 1000:1000 /workspace" | |
docker run --rm \ |