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
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd"> | |
<bean class="org.apache.ignite.configuration.IgniteConfiguration"> | |
<!-- Enabling Apache Ignite Persistent Store. --> | |
<property name="dataStorageConfiguration"> |
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 color [r g b] | |
(Color. r g b 0xFF)) | |
(def white (.getRGB (color 0xFF 0xFF 0xFF))) | |
(defn create-image [w h] | |
(let [image (BufferedImage. w h BufferedImage/TYPE_INT_RGB)] | |
(doseq [x (range w) y (range h)] | |
(.setRGB image x y white)) | |
image)) |