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
#!/bin/bash | |
### INSTALLATION: | |
### Add the following 4 lines to your .bashrc or .bash_profile | |
### # source the sublimerc file if it exists | |
### if [ -f "${HOME}/.sublimerc" ] ; then | |
### source "${HOME}/.sublimerc" | |
### fi | |
### | |
### Strip off the leading "### " of course. |
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 test-with-google [] | |
(let [driver (FirefoxDriver.)] | |
(.get driver "http://www.google.com/") | |
(println "Original page title is " (.getTitle driver)) | |
(let [element (.findElement driver (By/name "q"))] | |
(.sendKeys element (into-array ["clojure\n"])) | |
(.submit element) | |
(-> (WebDriverWait. driver 10) | |
(.until (proxy [ExpectedCondition] [] | |
(apply [d] |
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
#(every? true? (map = % (reverse %))) |
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
user> (def a (agent 100)) | |
#'user/a | |
user> @a | |
100 | |
user> (agent-error a) | |
nil | |
user> (send a + 100) | |
#<Agent@73cc11: 100> | |
user> @a | |
100 |
NewerOlder