Skip to content

Instantly share code, notes, and snippets.

View cedricziel's full-sized avatar
🥸

Cedric Ziel cedricziel

🥸
View GitHub Profile
<?php
namespace Typovision\Simpleblog\Service;
class SignalService implements \TYPO3\CMS\Core\SingletonInterface {
public function handleInsertEvent(\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, $signalInformation) {
if($object instanceof \Typovision\Simpleblog\Domain\Model\Blog) {
$logfile = "C:\\xampp\\htdocs\\t3Test\\testLog.txt";
\TYPO3\CMS\Extbase\Utility\GeneralUtility::writeFile($logfile, "test");
}
}
@paulirish
paulirish / readme.md
Last active April 2, 2024 20:18
resolving the proper location and line number through a console.log wrapper

console.log wrap resolving for your wrapped console logs

I've heard this before:

What I really get frustrated by is that I cannot wrap console.* and preserve line numbers

We enabled this in Chrome DevTools via blackboxing a bit ago.

If you blackbox the script file the contains the console log wrapper, the script location shown in the console will be corrected to the original source file and line number. Click, and the full source is looking longingly into your eyes.

@kristianmandrup
kristianmandrup / Converting libraries to Ember CLI addons.md
Last active April 21, 2023 17:14
Guide to Developing Addons and Blueprints for Ember CLI

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember library

The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.

@dwightwatson
dwightwatson / TestCase.php
Created September 9, 2014 02:22
Flush and reset Eloquent model events when testing.
<?php
class TestCase extends Illuminate\Foundation\Testing\TestCase {
/**
* Creates the appliation.
*
* @return \Symfony\Component\HttpKernel\HttpKernelInterface
*/
public function createApplication()
@radmiraal
radmiraal / gist:8d68190e4d8de98ed865
Created July 10, 2014 19:20
Routing configuration for the TYPO3.TYPO3CR paginate viewhelper in a TYPO3 Neos nodetype
-
name: 'Search paginate'
uriPattern: '{node}/{--typo3-typo3cr-viewhelpers-widget-paginateviewhelper.currentPage}'
defaults:
'@package': 'TYPO3.Neos'
'@controller': 'Frontend\Node'
'@format': 'html'
'@action': 'show'
'--typo3-typo3cr-viewhelpers-widget-paginateviewhelper':
'@package': ''
@staltz
staltz / introrx.md
Last active May 3, 2024 13:00
The introduction to Reactive Programming you've been missing
@kj187
kj187 / gist:9857991
Last active June 28, 2021 11:21
Inspiring Conference 2014 in Kolbermoor
@pierredup
pierredup / MigrateController.php
Created March 15, 2014 18:11
Running doctrine migrations from a controller
<?php
namespace Acme\DemiBundle\Controller;
use Doctrine\DBAL\Migrations\Migration;
use Doctrine\DBAL\Migrations\Configuration\Configuration;
class MigrateController extends BaseController
{
public function indexAction()
@miwahall
miwahall / jquery-bootstrap-datepicker.css
Created October 17, 2013 17:10
jQuery UI Datepicker Bootstrap 3 Style
.ui-datepicker {
background-color: #fff;
border: 1px solid #66AFE9;
border-radius: 4px;
box-shadow: 0 0 8px rgba(102,175,233,.6);
display: none;
margin-top: 4px;
padding: 10px;
width: 240px;
}