https://github.com/agilecreativity/clojure-walkthrough
My random Clojure codes from various sources from the inter-web!
https://github.com/agilecreativity/clojure-walkthrough
clojure examples java
Last synced: about 2 months ago
JSON representation
My random Clojure codes from various sources from the inter-web!
- Host: GitHub
- URL: https://github.com/agilecreativity/clojure-walkthrough
- Owner: agilecreativity
- License: epl-1.0
- Created: 2016-04-19T12:27:55.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-07-31T05:53:35.000Z (11 months ago)
- Last Synced: 2025-07-31T08:40:24.257Z (11 months ago)
- Topics: clojure, examples, java
- Language: Clojure
- Homepage:
- Size: 95.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# clojure-walkthrough
Clojure examples from various sources around the web.
## Tips
- [Mix Java and Clojure files](https://github.com/technomancy/leiningen/blob/master/doc/MIXED_PROJECTS.md)
Make sure your `project.clj` have something like the following:
```clj
(defproject megacorp/superservice "1.0.0-SNAPSHOT"
:description "A Clojure project with a little bit of Java sprinkled here and there"
:min-lein-version "2.0.0"
:source-paths ["src/clojure"]
:java-source-paths ["src/java"])
```
Current value for `project.clj`
```
(defproject clojure-walkthrough "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/data.json "0.2.6"]]
:target-path "target/%s"
:profiles {:uberjar {:aot :all}}
:source-paths ["src/clojure" "test/clojure"]
:java-source-paths ["src/java" "test/java"]
:aot [com.gentest.genclojure]
:main com.gentest.ConcreteClojureClass
;; Note: original value generated by lein new command
;:main ^:skip-aot clojure-walkthrough.core
)
```
```sh
# To compile Java file
lein javac
# To remove compilation artifacts
lein clean
```
### Useful Links
- [mixing-java-and-clojure](https://github.com/quephird/mixing-java-and-clojure)
```clj
(System/getProperty "file.endcoding") ;"UTF-8"
(clojure-version) ;; 1.7.0
(System/getProperty "user.dir")
```
## License
Copyright © 2016 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.