How to inform Eclipse and other Mac applications of the command line PATH
- Update Mac OS X's notion of
PATH.
$ defaults write ~/.MacOSX/environment PATH "`echo $PATH`"
$ echo "setenv PATH $PATH" | sudo tee /etc/launchd.conf
- Restart Mac OS X.
How to inform Eclipse and other Mac applications of the command line PATH
PATH.$ defaults write ~/.MacOSX/environment PATH "`echo $PATH`"
$ echo "setenv PATH $PATH" | sudo tee /etc/launchd.conf
| ;; Datomic example code | |
| ;; demonstrates various update scenarios, using a news database | |
| ;; that contains stories, users, and upvotes | |
| ;; grab an in memory database | |
| (use '[datomic.api :only (q db) :as d]) | |
| (def uri "datomic:mem://foo") | |
| (d/create-database uri) | |
| (def conn (d/connect uri)) |
| require 'test_helper' | |
| shared_examples_for 'An Adapter' do | |
| describe '#read' do | |
| before do | |
| @adapter.write(@key = 'whiskey', @value = "Jameson's") | |
| end | |
| it 'reads a given key' do | |
| @adapter.read(@key).must_equal(@value) |
| ;; It all started here: http://clojure-log.n01se.net/date/2011-04-06.html#19:04 | |
| (#((% (+(*))) %) ;; call arg 1 with all args | |
| [;; data | |
| (+ (*)(*)(*)(*)(*)(*)(*)) | |
| ;; main fn -- simulate 'if' with map lookup and closures | |
| #(({(+) (% (+(*)(*)))} ;; if zero return 'then' clause | |
| (% (+)) ;; dispatch on first arg | |
| (% (+(*)(*)(*)))) ;; call 'else' clause (n not found in map) | |
| %) |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |