Skip to content

Instantly share code, notes, and snippets.

View IndyIndyIndy's full-sized avatar

Christian Eßl IndyIndyIndy

View GitHub Profile
@IndyIndyIndy
IndyIndyIndy / example.php
Created July 27, 2023 08:30
Example code for ext:container issue
// Collapse Container
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\B13\Container\Tca\Registry::class)->configureContainer(
(
new \B13\Container\Tca\ContainerConfiguration(
'container-collapse', // CType
'Collapse', // label
'Description', // description
[
[
@IndyIndyIndy
IndyIndyIndy / gist:504efb9575bc7bc1cbc063b578a6279d
Created April 16, 2019 12:13
TYPO3 8+ debug extbase queries with the doctrine query builder
use \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser;
use \TYPO3\CMS\Extbase\Utility\DebuggerUtility;
$queryParser = $this->objectManager->get(Typo3DbQueryParser::class);
DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getSQL());
DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getParameters());
@IndyIndyIndy
IndyIndyIndy / gist:64b536a2bbc3ba940400009d52ffaf01
Created April 16, 2019 12:09
check the git status of all files in subdirectories (with multiple git repositories)
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo {} && cd {} && git status -s && echo)' \;
// Automatically convert date inputs to a required format
// Works, but needs a lot of refactoring
var dateInputHelper = new DateInputHelper();
function DateInputHelper() {
var self = this;
self.cursorPosition = null;
self.buildDateInput = function($input, separator, minYear, maxYearLimit) {
@IndyIndyIndy
IndyIndyIndy / gist:8841613
Last active August 29, 2015 13:56
text-align-justify grid
.row {
text-align: justify;
line-height: 0;
}
.row-item {
display: inline-block;
width: 310px;
min-height: 10px;
text-align: left;