This file contains hidden or 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
(import java.util.concurrent.Executors) | |
(use '[plumbing.core :only [wait-until with-log]]) | |
(require '[work.core :as work] | |
'[fetcher.core :as fetcher]) | |
(def test-feed-urls | |
["http://daringfireball.net/index.xml" "http://www.rollingstone.com/siteServices/rss/allNews" "http://feeds.feedburner.com/iamwhitePosterous" "http://www.9to5mac.com/feed" "http://abovethecrowd.com/feed/" "http://feeds.feedburner.com/pulsosocial" "http://www.bytearray.org/?feed=rss2" "http://usabilitytestinghowto.blogspot.com/feeds/posts/default" "http://mgalligan.com/rss" "http://feeds.searchengineland.com/searchcap" "http://feeds.feedburner.com/palletops" "http://googledevjp.blogspot.com/feeds/posts/default" "http://blog.boxee.tv/feed/" "http://twitgoo.com/1r6osl/?format=rss" "http://davidrcole.com/feed/" "http://milancermak.posterous.com/rss.xml" "http://typedia.com/blog/feed/" "http://diveintohtml5.org//hg.diveintohtml5.org/hgweb.cgi/atom-log" "http://www.curious-creature.org/feed/" "http://networkeffect.allthingsd.com/fee |
This file contains hidden or 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
import os | |
import subprocess | |
path = os.path.dirname(os.path.realpath(__file__)) | |
def install_cmd(fname, group_id, art_id, version): | |
return "lein localrepo install %s %s/%s %s" % (fname, group_id, art_id, version) | |
for fname in os.listdir(path): | |
name = os.path.splitext(fname)[0] |
This file contains hidden or 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
(defn integer-string? [s] | |
(and (string? s) | |
(every? (partial contains? #{\0 \1 \2 \3 \4 \5 \6 \7 \8 \9}) s))) | |
(def IntStr (sc/pred integer-string?)) | |
(def DateStr (sc/pred (comp not nil? #(.parse (SimpleDateFormat. "yyyy-MM-dd") % (ParsePosition. 0))))) | |
(def FundingAgentLevel | |
{(sc/required-key "id") String | |
(sc/required-key "name") String | |
(sc/optional-key "abbr") String}) |
OlderNewer