Skip to content

Instantly share code, notes, and snippets.

View RaymondKroon's full-sized avatar
😃

Raymond RaymondKroon

😃
View GitHub Profile
rasterLayers:
for (RasterLayer layer : service.getRasterLayers()) {
String datastoreName = layer.getDatastoreName();
boolean doIt = false;
for(RasterDatastore rasterDatastore : service.getRasterDatastores()) {
if(datastoreName.equals(rasterDatastore.getName())) {
doIt= true;
}
}
if(!doIt) {
@RaymondKroon
RaymondKroon / test.java
Last active August 29, 2015 14:20
getter/setter test
package nl.pdok.datamanagement.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.HashSet;
import java.util.Set;
@RaymondKroon
RaymondKroon / core.clj
Created February 15, 2015 18:44
Spiral
(defn spiral [n]
(let [amounts (drop 1 (mapcat #(repeat 2 %) (range n 0 -1)))
directions (cycle [1 n -1 (- n)])
steps (mapcat (fn [a d] (repeat a d)) amounts directions)
values (reductions + steps)]
values))
@RaymondKroon
RaymondKroon / Vertx-Repl-Cider
Last active August 29, 2015 14:14
Vertx repl cider support
It's not that hard, but I tend to easily forget
@RaymondKroon
RaymondKroon / gist:60f74ae45b2b67b79c45
Created November 6, 2014 17:03
Openlayers 3 WMTS voorbeeld
<!DOCTYPE html>
<html>
<head>
<title>PDOK Download App</title>
<link rel="stylesheet" href="http://openlayers.org/en/v3.0.0/css/ol.css" type="text/css">
<script src="http://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.3/proj4.js" type="text/javascript"></script>
<script src="http://openlayers.org/en/v3.0.0/build/ol.js" type="text/javascript"></script>
</head>
<body>
### Keybase proof
I hereby claim:
* I am raymondkroon on github.
* I am raymondkroon (https://keybase.io/raymondkroon) on keybase.
* I have a public key ASAD-Eucvv8ZLd-9VhlEnXTpw0wDuDENifaGcK6dLw5RpQo
To claim this, I am signing this object: