Skip to content

Instantly share code, notes, and snippets.

CALL apoc.meta.data() YIELD label, property, type, elementType
WHERE elementType <> 'relationship'
AND type <> 'RELATIONSHIP'
WITH label, collect(property + ' (' + type + ')') AS properties
WITH apoc.map.fromLists(collect(label), collect(properties)) AS properties_map
CALL apoc.meta.graph() YIELD nodes, relationships
UNWIND nodes AS n
WITH n, apoc.node.labels(n)[0] AS label, properties_map, relationships
@boulderalf
boulderalf / force.csv
Last active October 4, 2015 23:44 — forked from d3noob/.block
City of Boulder Colorado Municipal Elections
source target value
Amabile, Judy Coalition for One Boulder 96.8
Anderson, Cherry-Rose Coalition for One Boulder 100
Anderson, Sidney Coalition for One Boulder 485.2
Appelbaum, Matt Coalition for One Boulder 25
Beverage World, Hazel's Coalition for One Boulder 67.37
Biek, David Coalition for One Boulder 50
Born, Karen Coalition for One Boulder 970.7
Boulder, Better Coalition for One Boulder 2500
Burton, Jan Coalition for One Boulder 48.65
@boulderalf
boulderalf / contours-white.mrules
Last active December 14, 2015 20:28
Automated script for using Maperitive to create contours and hillshading and then uploading to MapBox using automated TileMill upload feature.
features
lines
contour major : contour[@isMulti(elevation, 100)]
contour minor : contour[@isMulti(elevation, 20) and not @isMulti(elevation, 100)]
properties
map-background-color : #F1EEE8
map-background-opacity : 0
font-weight : bold
font-family : Verdana
:: make sure that your current directory is the one that contains the TileMill-specific node.exe
cd "C:\Program Files (x86)\TileMill-v0.10.1\tilemill"
:: select the TileMill project name
SET TM_PROJECT=chaco
:: I want to export to MBTiles so I need to specify where to render the file
SET TM_FILE=%~dp0/%TM_PROJECT%.mbtiles
:: render the project
node index.js export %TM_PROJECT% %TM_FILE% --format=mbtiles