- Summary
- Example programs
- Updated (?) edit.k
- ~2014 older version that has more info
- The project has been running since at least 2012
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
| (ns system-example | |
| (:require [spork.async.system :as sys] | |
| [clojure.core.async :as async :refer [chan]])) | |
| (def ins (chan (async/dropping-buffer 1))) | |
| (def outs (chan (async/dropping-buffer 1))) | |
| (sys/go-push :clock ins (let [res (async/<! (async/timeout 1000))] | |
| (System/currentTimeMillis))) |
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/sh | |
| #_( | |
| #_DEPS is same format as deps.edn. Multiline is okay. | |
| DEPS=' | |
| {:deps {clj-time {:mvn/version "0.14.2"}}} | |
| ' | |
| #_You can put other options here | |
| OPTS=' |
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
| {:deps {org.clojure/clojure {:mvn/version "1.10.0"} | |
| com.taoensso/nippy {:mvn/version "2.14.0"} | |
| org.apache.commons/commons-compress {:mvn/version "1.18"}}} |
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
| {:deps {org.clojure/clojure {:mvn/version "1.10.0"} | |
| org.bouncycastle/bcprov-jdk15on {:mvn/version "1.61"}}} |
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
| (ns deployer | |
| (:require [clojure.tools.deps.alpha :as deps] | |
| [clojure.tools.deps.alpha.reader :as reader] | |
| [clojure.java.io :as io] | |
| [clojure.string :as string]) | |
| (:import (java.security MessageDigest) | |
| (com.jcraft.jsch JSch) | |
| (java.net URI))) | |
| (def hex-alphabet (vec "0123456789ABCDEF")) |
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
| (ns hoplonfx.core | |
| (:require | |
| [hoplonfx.ui :refer [run]] | |
| [hoplonfx.util :refer :all]) | |
| (:import | |
| [hoplonfx ApplicationShim] | |
| [javafx.application Application])) | |
| (defonce stage | |
| (delay |
A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.
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
| (ns applesoranges.core | |
| (:require [clojure.spec.alpha :as s])) | |
| ;; define the properties | |
| (s/def ::fruit-attribute-spec (s/keys :req [::diameter ::color])) | |
| (s/def ::diameter nat-int?) | |
| (s/def ::color #{:green :orange}) | |
| ;; define the "type"-hierarchy | |
| ;; seemed like a good idea to use a separate spec for the hierarchy (in order to keep things simple) |