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
CopyTask copy = new CopyTask(); | |
Fileset fileset = new Fileset(); | |
fileset.setDir("src_dir"); | |
copy.setToDir("../new/dir"); | |
copy.setFileset(fileset); | |
copy.execute(); |
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
<define-function return-type="int" name="add"> | |
<arguments> | |
<argument type="int">arg1</argument> | |
<argument type="int">arg2</argument> | |
</arguments> | |
<body> | |
<return> | |
<add value1="arg1" value2="arg2" /> | |
</return> | |
</body> |
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
<task name="Test"> | |
<echo message="Hello World!"/> | |
</task> | |
<Test /> |
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
<copy todir="../new/dir"> | |
<fileset dir="src_dir"/> | |
</copy> |
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 [] | |
(println "Hello World!") | |
) | |
(test) |
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 clojurekarotz.core | |
(:require [clojurekarotz.util :as u])) | |
(def quit (fn [event] (if (= event "TERMINATED") (js/exit)))) | |
(defn onKarotzConnect [data] | |
(.moveRelative (.-ears js/karotz) 5 -5 (fn [_])) | |
(.start (.-tts js/karotz) "Buenos dias Clojure. Como estas? Tienes animales?" "es" quit)) | |
(.connectAndStart js/karotz "192.168.1.13" 9123 onKarotzConnect (js-obj)) |
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
cljs.user> (neighbors [1 1]) | |
([0 0] [0 1] [0 2] [1 0] [1 2] [2 0] [2 1] [2 2]) |
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=> (distinct (map :e (d/datoms (d/since (db conn) #inst "2012-06-25T10:33:16.436-00:00") :eavt))) | |
(13194139534683 17592186045460) |
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=> @(d/transact conn | |
[{:db/id #db/id[:db.part/db] | |
:db/ident :audit/user | |
:db/valueType :db.type/string | |
:db/cardinality :db.cardinality/one | |
:db/index true | |
:db.install/_attribute :db.part/db}]) |
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
(let [lst (filter odd? [1 2 3 4 5]) | |
fst (first lst) | |
snd (second lst)] | |
(println fst snd)) | |
=> 1 3 |
OlderNewer