This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Your\Extension\Namespace\Hooks; | |
class PageLayoutView implements \TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface | |
{ | |
/** | |
* Preprocesses the preview rendering of a content element. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Your\Extension\Namespace\Hooks; | |
/** | |
* Clean up source | |
*/ | |
class CleanSource extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Configuration | |
# | |
# sass source | |
SASS_SOURCE_PATH="resources/scss" | |
SASS_SOURCE_FILE="main.scss" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Contracts\Routing\Middleware; | |
use Illuminate\Http\Response; | |
class Cors implements Middleware | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update `mytable` | |
set `created` = null | |
where cast(`created` as char(20)) = '0000-00-00 00:00:00'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Omnivore timestamp is based on 2001-01-01 (978303600) | |
select | |
item.ZDOWNLOADURL as url, | |
null as folder, | |
item.ZSITENAME as title, | |
null as note, | |
GROUP_CONCAT(label.ZNAME, ', ') as tags, | |
datetime(item.ZCREATEDAT + 978303600, 'unixepoch') AS created | |
from ZLINKEDITEM item | |
left join Z_2LABELS rel on item.Z_PK = rel.Z_2LINKEDITEMS |