There is a shapefile describing State Boundaries of the United States. Load it and see if you can answer the following questions.
- In what order were the States of the United States admitted to the union?
- How much land area is contained within the boundaries of the United States?
- What is the mapping of
name
tostate fips
?
I hereby claim:
- I am sduckett on github.
- I am sduckett (https://keybase.io/sduckett) on keybase.
- I have a public key whose fingerprint is 4B8A 9A48 910A 9820 5C1A 9E60 8425 842D 6886 EF4C
To claim this, I am signing this object:
Found a thread about setting up a Clojure Dev Environment. The responses include
- use component and tools.namespace together
- use an nREPL connection through your editor of choice, and if running clj-autotest it should be able to communicate with the same nREPL connection, so you can have the tools handle most of the test running, etc; the REPL tends to be used for the exploratory stuff.
- Sean Corfield keeps his REPL in the user namespace. each namespace that's being worked on is (required) in the repl, and expressions from the file are evaluated in the repl.
- you can build a Leiningen template with the setup that works for you (testing tools, REPL initialization, etc.) If you took this approach, you could have both a library (the code you're working on) and a developme
This file contains 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 haversine | |
"The haversine distance between two geographical points 1 and 2; | |
see <https://en.wikipedia.org/wiki/Haversine_formula>" | |
[p1 p2] | |
(let [φ1 (p1 :lat) | |
λ1 (p1 :lon) | |
φ2 (p2 :lat) | |
λ2 (p2 :lon) | |
Δλ (Math/toRadians (- λ2 λ1)) | |
Δφ (Math/toRadians (- φ2 φ1)) |
This file contains 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
┌[smd@amdi] [/dev/pts/2] [gh-pages ⚡] | |
└[~/clojurebridge/curriculum/outline]> markdown --help | |
Can't open --help: No such file or directory at /usr/bin/markdown line 218. | |
Use of uninitialized value $text in substitution (s///) at /usr/bin/markdown line 245. | |
Use of uninitialized value $text in substitution (s///) at /usr/bin/markdown line 246. |
An essay by Vannevar Bush, from the July 1945 issue of The Atlantic
“The repetitive processes of thought are not confined however, to matters of arithmetic and statistics. In fact, every time one combines and records facts in accordance with established logical process, the creative aspect of thinking is concerned only with the selection of the data and the process to be employed and
NewerOlder