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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
const isOdd = x => x % 2 === 1; | |
const toArray = s => s.split(""); | |
const alpha = toArray("abcdefghijklmnopqrstuvwxyz"); | |
const occurrences = (s, c) => toArray(s).filter(x => x === c).length; | |
const evenWord = s => alpha.map(c => occurrences(s, c)).filter(isOdd).length; |
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
"legends":[ | |
{ | |
"name":"Admitting", | |
"color":"#00ffff", | |
"classes":[ | |
] | |
}, | |
{ |
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
curl 'http://localhost:8080/geoserver/pdf/create.json' -H 'Content-Type: application/json' --data-binary '{"units":"degrees","srs":"EPSG:4326","layout":"A4 portrait","dpi":300,"outputFileName":"print","mapTitle":"USA States","comment":"This is a comment","layers":[{"type":"WMS","layers":["states"],"styles":[],"baseURL":"http://localhost:8080/geoserver/topp/wms","format":"application/pdf"}],"pages":[{"bbox":[-124.73142200000001,24.955967,-66.969849,49.371735],"rotation":0}],"legends":[]}' |