Skip to content

Instantly share code, notes, and snippets.

View Benjamin-K's full-sized avatar

Benjamin Klix Benjamin-K

View GitHub Profile
@Sebobo
Sebobo / FrontendNodeRoutePartHandler.php
Last active February 21, 2018 11:16
Modified node route part handler for Neos 2.* for hiding url path segments of specific pages in the frontend url generation
<?php
namespace Vendor\Package\Routing;
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Neos\Domain\Service\SiteService;
use TYPO3\TYPO3CR\Domain\Model\NodeInterface;
use TYPO3\Neos\Routing\Exception as Exception;
/**
* A route part handler for finding nodes specifically in the website's frontend.
@zeitiger
zeitiger / gist:a57ead8904ee9a6ec4c3
Created March 9, 2016 08:21
How to convert shp to geojson under Mac OS X
#install gdal
brew install gdal
#convert 1:1
ogr2ogr -f "GeoJSON" file.geojson file.shp
#convert loose, higher tolerance in simplify reduce files size and lost data precision
ogr2ogr -simplify 0.000001 -f "GeoJSON" file.geojson file.shp