Skip to content

Instantly share code, notes, and snippets.

View cedricziel's full-sized avatar
🥸

Cedric Ziel cedricziel

🥸
View GitHub Profile
@kj187
kj187 / gist:9857991
Last active June 28, 2021 11:21
Inspiring Conference 2014 in Kolbermoor
@staltz
staltz / introrx.md
Last active May 28, 2026 07:44
The introduction to Reactive Programming you've been missing
@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': ''
@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()
@kristianmandrup
kristianmandrup / Converting libraries to Ember CLI addons.md
Last active March 12, 2025 04:26
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.

@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.

<?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");
}
}
@alexanderschnitzler
alexanderschnitzler / openletter.md
Last active August 16, 2018 19:14
An open letter to the Neos development team

An open letter to the Neos development team

Dear members of the development team, CU a few days ago I commented the announcement, that Neos and Flow get rid of "TYPO3" as part of their names, as follows:

Removing "TYPO3" from Neos and Flow makes it easier to quietly abandon these products. \o/

Additionally to this tweet I had a small twitter conversation resulting in this tweet:

@chinshr
chinshr / Jenkinsfile
Last active May 20, 2025 13:10
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
#!/bin/sh
#postinst
_suspend_dpkg_process()
{
rm -rf /var/lib/dpkg/updates.suspended/
mv /var/lib/dpkg/lock /var/lib/dpkg/lock.suspended
mv /var/lib/dpkg/updates/ /var/lib/dpkg/updates.suspended
mkdir /var/lib/dpkg/updates/
mv /var/cache/apt/archives/lock /var/cache/apt/archives/lock.suspended