Commits

Ning Sun committed 113c68a

update slacker examples for 0.8.0

  • Participants
  • Parent commits 94f8ed4

Comments (0)

Files changed (3)

slacker-client-demo/project.clj

 (defproject slacker-client-demo "1.0.0-SNAPSHOT"
   :description "FIXME: write description"
-  :dependencies [[org.clojure/clojure "1.2.1"]
-                 [slacker "0.7.0-SNAPSHOT"]]
+  :dependencies [[org.clojure/clojure "1.3.0"]
+                 [slacker "0.8.0-SNAPSHOT"]]
   :main slacker-client-demo.core)
 

slacker-client-demo/src/slacker_client_demo/core.clj

 (use-remote 'scp 'redday.stats)
 
 (defn -main [subreddit & args]
-  (let [reddits (top-titles subreddit)
+  (let [subreddit (or subreddit "programming")
+        reddits (top-titles subreddit)
         words-stats (apply nouns-count reddits)]
     (pprint words-stats)))
 

slacker-server-demo/project.clj

 (defproject redday "1.0.0-SNAPSHOT"
   :description "FIXME: write description"
-  :dependencies [[org.clojure/clojure "1.2.1"]
-                 [slacker "0.7.0-SNAPSHOT"]
+  :dependencies [[org.clojure/clojure "1.3.0"]
+                 [slacker "0.8.0-SNAPSHOT"]
                  [reddit.clj "0.3.3"]
-                 [clojure-opennlp "0.1.7"]]
+                 [clojure-opennlp "0.1.9"]]
   :main redday.core)