View mysqlDateUpdate.sql
This file contains 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'; |
View Cors.php
This file contains 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 | |
{ |
View watch.sh
This file contains 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" |
View CleanSource.php
This file contains 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 | |
{ | |
/** |
View PageLayoutView.php
This file contains 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. | |
* |