Skip to content

Instantly share code, notes, and snippets.

Avatar

Ilya Kaznacheev alamar

View GitHub Profile
View rack.xml
<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">
@alamar
alamar / image.clj
Created Dec 12, 2011
a slow cycle
View image.clj
(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))