Skip to content

Instantly share code, notes, and snippets.

View alamar's full-sized avatar

Ilya Kaznacheev alamar

View GitHub Profile
@alamar
alamar / image.clj
Created December 12, 2011 20:59
a slow cycle
(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))
<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">