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
SELECT FLOOR( call.created_at % ( 3600 *24 ) ) AS `interval` , COUNT( * ) AS c, call.campaign_id, campaign.name | |
FROM `call` | |
LEFT JOIN `campaign` ON campaign.id = call.campaign_id | |
WHERE 1 | |
GROUP BY `interval` , campaign_id |
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
// RxJS - FRP | |
const increment = new Subject<void>(); | |
const decrement = new Subject<void>(); | |
const add = new Subject<number>(); | |
type State = number; | |
const count$ = merge( | |
increment.pipe(mapTo((state: State) => state + 1)) | |
decrement.pipe(mapTo((state: State) => state - 1)), |
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\EasyAdminExtensions\Controller; | |
use EasyCorp\Bundle\EasyAdminBundle\Config\Action; | |
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController; | |
use EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto; | |
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeCrudActionEvent; | |
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeEntityPersistedEvent; | |
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeEntityUpdatedEvent; |