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
| #include<iostream> | |
| #include<cstdlib> | |
| #include<cmath> | |
| using namespace std; | |
| int main() | |
| { |
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
| (-> "http://clojure-log.n01se.net/" java.net.URL. html-resource | |
| (select {[:#main [:p (has [:b])]] [:#main [:p (right (has [:b]))]]}) | |
| (let-select [[nick] [:b] | |
| says [:p :> (but-node #{whitespace :b [:a first-of-type]})]] | |
| [(text nick) (apply str (texts says))])) | |
| (comment Sample output | |
| (["bradbeveridge: " "is Java's ZipInputStream really slow, or am I using it wrong?\n clojurebot: pastebin?\n"] | |
| ["clojurebot: " "excusez-moi\n"] | |
| ["bradbeveridge: " "http://clojure.pastebin.com/zR9di5K0"] |
NewerOlder