Skip to content

Instantly share code, notes, and snippets.

View dfeyer's full-sized avatar

Dominique Feyer dfeyer

View GitHub Profile
@dfeyer
dfeyer / GoogleMap.html
Created October 18, 2013 19:50
A small snippet for Google Map integration in TYPO3 Neos, or any TYPO3 Flow project who use the Content Repository and TypoScript package
{namespace neos=TYPO3\Neos\ViewHelpers}
<neos:contentElement node="{node}">
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script>
<![CDATA[
function initializeMap]]>{node.name}<![CDATA[() {
var myLatlng = new google.maps.LatLng(]]>{longitude}<![CDATA[,]]>{latitude}<![CDATA[);
var mapOptions = {
zoom: ]]>{zoomlevel}<![CDATA[,
center: myLatlng,
@dfeyer
dfeyer / TemplateImplementation.php
Created March 30, 2017 09:22
Custom Fusion TemplateImplementation
<?php
namespace Flowpack\FusionBP\FusionObjects;
use Neos\Flow\Annotations as Flow;
use Neos\Flow\Mvc\ActionRequest;
use Neos\Fusion\FusionObjects\TemplateImplementation as OriginalTemplateImplementation;
use Neos\Fusion\FusionObjects\Helpers as Helpers;
use Neos\FluidAdaptor\Core\Parser\Interceptor\ResourceInterceptor;
use TYPO3Fluid\Fluid\Core\Parser\InterceptorInterface;
<?php
namespace TYPO3\Eel\Tests\Spec;
use TYPO3\Eel\Context;
use TYPO3\Eel\Tests\Unit\Fixtures\TestObject;
describe(Context::class, function () {
describe('->unwrap', function() {
outlook.com
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
@dfeyer
dfeyer / free_email_provider_domains.txt
Created March 3, 2016 10:37 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
163.com
@dfeyer
dfeyer / SemaphoreLockStrategy.php
Last active February 16, 2016 19:19
Semaphore based lock strategy for Flow Framework
<?php
namespace TYPO3\Flow\Utility\Lock;
/*
* This file is part of the TYPO3.Flow package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
@dfeyer
dfeyer / SharedMemoryBackend.php
Created February 9, 2016 12:33
A prototype for a Semaphore based Flow Framework Cache Storage implementation
<?php
namespace TYPO3\Flow\Cache\Backend;
/*
* This file is part of the TYPO3.Flow package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
<?php
namespace TYPO3\Flow\Utility\Lock;
/*
* This file is part of the Neos.Flow.Lock package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
triggers:
eventNodeTypePublishedByMarketingTeam:
type: 'onBeforeNodePublishing'
condition:${q(node).is('[instanceof Ttree.Plugin:Event]') && q(user).hasRole('Ttree.Site:MarketingTeam')}
eventNodeTypeDeleted:
type: 'onNodeDeletion'
condition:${q(node).is('[instanceof Ttree.Plugin:Event]')}
actions:
prototype(TYPO3.Neos:PrimaryContent).referenceProject {
condition = ${q(node).is('[instanceof Ttree.OfficialWebsite:ReferenceProject]')}
type = 'Ttree.OfficialWebsite:ReferenceProject'
@position = 'before referenceCustomer'
}