(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| (defn clob-to-string [clob] | |
| "Turn an Oracle Clob into a String" | |
| (with-open [rdr (java.io.BufferedReader. (.getCharacterStream clob))] | |
| (apply str (line-seq rdr)))) | |
| (with-connection mydb | |
| (transaction | |
| (with-query-results rs ["select documentation from station"] | |
| ; rs will be a sequence of maps, | |
| ; one for each record in the result set. |
| #!/usr/bin/env groovy | |
| @GrabResolver(name="restlet", root="http://maven.restlet.org/") | |
| @Grab(group="org.restlet.jse", module="org.restlet", version="2.0.9") | |
| // request timeouts reliably only with Apache HttpClient | |
| @Grab(group="org.restlet.jse", module="org.restlet.ext.httpclient", version="2.0.9") | |
| import org.restlet.* | |
| import org.restlet.data.* |
| [ | |
| { "keys": ["ctrl+shift+x"], "command": "tidy_xml" }, | |
| { "keys": ["ctrl+shift+j"], "command": "prettify_json" } | |
| ] |
| ;; | |
| ;; NS CHEATSHEET | |
| ;; | |
| ;; * :require makes functions available with a namespace prefix | |
| ;; and optionally can refer functions to the current ns. | |
| ;; | |
| ;; * :import refers Java classes to the current namespace. | |
| ;; | |
| ;; * :refer-clojure affects availability of built-in (clojure.core) | |
| ;; functions. |