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
(def hadoop-ip "10.10.10.10") | |
(def hadoop-provider | |
(compute-service | |
"node-list" | |
:node-list [["hadoop" "hadoop-master" hadoop-ip :ubuntu]])) | |
(lift | |
(group-spec "hadoop-master" | |
:phases {:configure (phase-fn (package "vim"))}) |
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
(page "onready.html") | |
(defn doc-ready-handler [] | |
;; do some stuff after page is loaded and ready | |
) | |
(defn on-ready [fn] | |
(aset js/document | |
"onreadystatechange" | |
(fn [] |
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
{ | |
"stats": { | |
"articles": { | |
"total": 422, | |
"ingested": 419, | |
"fetched": 0, | |
"errored": 0, | |
"read": 315 | |
}, | |
"notes": { |
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
{ | |
"health": { | |
"timestamp": "Mon Mar 17 18:25:14 CDT 2014", | |
"database-value": "datomic.db.Db@142b5413", | |
"pid": 72843, | |
"process-uptime": 20318, | |
"memory": { | |
"free": 279499760, | |
"total": 548405248 | |
}, |
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
mkdir gleam | |
cd gleam | |
git init . |
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
boot :strap > build.boot |
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
git clone https://github.com/mathias/gleam.git | |
cd gleam | |
git reset --hard 21156ad |
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
<script type="text/hoplon"> | |
(page "index.html" | |
(:refer-clojure :exclude [nth]) | |
(:require | |
[tailrecursion.hoplon.reload :refer [reload-all]])) | |
(reload-all 25) | |
</script> | |
<!DOCTYPE html> |
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
<script type="text/hoplon"> | |
(page "index.html" | |
(:refer-clojure :exclude [nth]) | |
(:require | |
[tailrecursion.hoplon.reload :refer [reload-all]])) | |
(def articles {:total 422 | |
:ingested 419 | |
:fetched 0 | |
:errored 0 |
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
<section> | |
<h2>Articles</h2> | |
<ul> | |
<li> | |
<label>Total:</label><text> ~{(get articles :total)}</text> | |
</li> | |
<li> | |
<label>Ingested:</label><text> ~{(get articles :ingested)}</text> | |
</li> | |
<li> |
OlderNewer