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
; db == config settings | |
(defn partners [db, cb] | |
"Fetches all partners" | |
(let [result (sql/table db :partners)] | |
(sql/with-results [res result] cb))) | |
(db/partners db #(prn %1)) |
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
SELECT id, partner_id, partner_hotel_identifier, name, CONCAT(COALESCE(address1, ''), ' ', COALESCE(address2, '')) AS 'address', city, state, zip, phone, lat, lng, stars, pet_policy, url FROM partner_hotels WHERE deleted <> 1 AND city='Aspen' AND state='CO' AND country_code='US' ORDER BY name, address; |
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
Matt-Mitchells-MacBook-Pro:apij mattmitchell$ cake help | |
clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate somnium/congomongo__init.class or somnium/congomongo.clj on classpath: (indexer.clj:1) | |
at clojure.lang.Compiler.eval (Compiler.java:5440) | |
clojure.lang.Compiler.eval (Compiler.java:5415) | |
clojure.lang.Compiler.load (Compiler.java:5857) | |
clojure.lang.RT.loadResourceScript (RT.java:340) | |
clojure.lang.RT.loadResourceScript (RT.java:331) | |
clojure.lang.RT.load (RT.java:409) | |
clojure.lang.RT.load (RT.java:381) | |
clojure.core$load$fn__4511.invoke (core.clj:4905) |
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
META-INF/MANIFEST.MF | |
meta-inf/maven/congomongo/congomongo/pom.xml | |
meta-inf/maven/congomongo/congomongo/pom.properties | |
somnium/congomongo.clj | |
somnium/congomongo/util.clj | |
somnium/congomongo/error.clj | |
somnium/congomongo/config.clj | |
somnium/congomongo/coerce.clj | |
project.clj |
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 leiningen.jswat | |
(:use | |
[clojure.contrib.shell-out :only [sh]] | |
[leiningen.classpath] | |
[clojure.string :only [join]])) | |
(defn jswat | |
([project] (jswat project "jswat")) | |
([project & [path]] | |
(let [cp (join java.io.File/pathSeparatorChar (get-classpath project))] | |
;; jswat --cp:p <classpath> |
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
html template: | |
<div id="foo"> | |
<img id="xyz" src="http://foo.com/?x=1&y=2"> | |
</div> | |
Enlive incorrectly emits "src" attribute: | |
http://foo.com/?x=1&y=2 |
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
Nov 24 02:21:47 Dev001 bluepilld[16400]: [mcp:mcp:sark2] Going from starting => down | |
Nov 24 02:21:47 Dev001 bluepilld[16400]: [mcp:mcp:sark3] Going from starting => down | |
Nov 24 02:21:47 Dev001 bluepilld[16400]: [mcp:mcp:sark4] Going from starting => down | |
Nov 24 02:21:47 Dev001 bluepilld[16400]: [mcp:mcp:sark5] Going from starting => down | |
Nov 24 02:21:47 Dev001 bluepilld[16400]: [mcp:mcp:sark1] Going from starting => down | |
Nov 24 02:21:48 Dev001 bluepilld[16400]: [mcp:mcp:sark2] Executing start command: /prod/mcp/releases/20091124013157/app/services/runners/sark.rb -c | |
/prod/mcp/releases/20091124013157/config/homeq.cfg -q sark2 -P /prod/mcp/releases/20091124013157/tmp/pids/sark-29016.pid -f | |
Nov 24 02:21:48 Dev001 bluepilld[16400]: [mcp:mcp:sark2] Going from down => starting | |
Nov 24 02:21:48 Dev001 bluepilld[16400]: [mcp:mcp:sark3] Executing start command: /prod/mcp/releases/20091124013157/app/services/runners/sark.rb -c | |
/prod/mcp/releases/20091124013157/config/homeq.cfg -q sark3 -P /prod/mcp/releases/200911240 |