Skip to content

Instantly share code, notes, and snippets.

View dfeyer's full-sized avatar

Dominique Feyer dfeyer

View GitHub Profile
@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
@dfeyer
dfeyer / keybase.md
Created March 20, 2015 22:40
keybase.md

Keybase proof

I hereby claim:

  • I am dfeyer on github.
  • I am dfeyer (https://keybase.io/dfeyer) on keybase.
  • I have a public key whose fingerprint is 5BC1 85CD 5BA5 B268 810B EE49 0881 5033 4C62 18FB

To claim this, I am signing this object:

@dfeyer
dfeyer / gist:44a75fba60d8cceba440
Last active August 29, 2015 14:17
Simple Neos Menu to list 4 recent news in a Menu (require EEL sort opertation)
# Solution 1
# Based on the default TypoScript2 Menu implementation
recentNewsMenu = TYPO3.TypoScript:Menu {
templatePath = 'resource://Your.Package/Private/Templates/NodeTypes/Menu.html'
filter = 'Your.Package:News'
[email protected] = ${q(value).count() > 0 ? q(value).sort('publishedDate', 'DESC').get() : value}
[email protected] = ${q(value).count() > 0 ? q(value).slice(0, 4).get() : value}
}
@dfeyer
dfeyer / Menu.ts2
Last active August 29, 2015 14:17
A simple menu in TypoScript2 for Neos
mainMenu = TYPO3.TypoScript:Menu {
templatePath = 'resource://Your.Package/Private/Templates/NodeTypes/Menu.html'
entryLevel = 1
maximumLevels = 1
active.attributes {
class = 'nav-link active'
id = 'navigation-menu'
role = 'navigation'