View README.md

inspector.cljs

root function is what gets added to our markup for the page. q/db is a query that just returns our entire re-frame db.

inspector.scss

Some example styling for the inspector.

View bash function
# one line for easy copy and pasting to terminal.
function newyezzy { curl -s http://newyeezyresolutions.com/randquote.php?quote=$1 | sed 's/.*\<h2>\(.*\)<.*<div id="sourceinfo".*/\1/' | head -n 1; }
View project.clj
(defproject revise "0.0.2"
:description "RethinkDB client for Clojure"
:url "github.com/bitemyapp/revise/"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:main bitemyapp.revise.core
:plugins [[lein-protobuf "0.3.1" :exclusions [leinjacker]]
[lein-difftest "2.0.0"]
[com.jakemccrary/lein-test-refresh "0.1.2"]]
:test-selectors {:default (fn [_] true) ;; (complement :integration)
View gist:3887459
(defun set-exec-path-from-shell-PATH ()
(let ((path-from-shell (shell-command-to-string "$SHELL -i -c 'echo $PATH'")))
(setenv "PATH" path-from-shell)
(setq exec-path (split-string path-from-shell path-separator))))
(if window-system (set-exec-path-from-shell-PATH))
View _readme.txt
Having Resharper auto put code into #regions is annoying.
To stop this, open Resharper options, then C# > Type Members Layout.
Uncheck "Use Default Patterns" and past xml into it.
View gist:1010159
<html>
<head></head>
<body>
<input type="button" onclick="window.open(location.href,'myWindow','height=300,width=300,menubar=no,status=no,left=3000').focus();return false;" value="Try it">
</body>
</html>
View gist:226340
// No issues with this
private static class DecimalsRecordLayout extends CobolRecordLayout {
public DecimalsRecordLayout() {
super("decimals");
field("Price", "9(5)");
field("Quantity", "99v999");
field("Other", "999v99");
}
}
View clj
#!/usr/bin/env bash
java -cp $HOME/opt/clojure/jars/jline.jar:$HOME/opt/clojure/jars/clojure-contrib.jar:$HOME/opt/clojure/jars/clojure.jar jline.ConsoleRunner clojure.main $*
View setup-clojure.sh
#!/usr/bin/env bash
CLOJURE_DIR=$HOME/opt/clojure
JAR_DIR=$HOME/opt/clojure/jars
mkdir -p $CLOJURE_DIR
cd $CLOJURE_DIR
# Get latest version of clojure and compile it
git clone git://github.com/richhickey/clojure.git
cd clojure