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
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) { |
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
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; |
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 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)) |
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
It's not that hard, but I tend to easily forget |
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
<!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> |
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
### 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: |
NewerOlder