This example will help you create custom Sonata Admin page and also explain how to make a statistics admin.
You can read more here
This example will help you create custom Sonata Admin page and also explain how to make a statistics admin.
You can read more here
| // ==UserScript== | |
| // @name Trello Syntax Highlight | |
| // @namespace https://gist.github.com/AsyncWizard | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author AsyncWizard | |
| // @require https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/highlight.min.js | |
| // @resource https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/github.min.css | |
| // @match https://trello.com/* | |
| // @grant none |
I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.
For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.
Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: markokunic | |
| * Date: 4/21/17 | |
| * Time: 3:41 PM | |
| */ | |
| namespace AppBundle\Exporter; |
| <?php | |
| if (!function_exists('interface_exists')) { | |
| die('PHP version too old'); | |
| } | |
| $throwables = listThrowableClasses(); | |
| $throwablesPerParent = splitInParents($throwables); | |
| printTree($throwablesPerParent); | |
| if (count($throwablesPerParent) !== 0) { | |
| die('ERROR!!!'); |
| // Add a 401 response interceptor | |
| window.axios.interceptors.response.use(function (response) { | |
| return response; | |
| }, function (error) { | |
| if (401 === error.response.status) { | |
| swal({ | |
| title: "Session Expired", | |
| text: "Your session has expired. Would you like to be redirected to the login page?", | |
| type: "warning", | |
| showCancelButton: true, |
Общие упрощенные понятия. Возможно существуют способы задать другое поведение нежели данное упощенное.
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| <?php | |
| class MyRepository extends EntityRepository | |
| { | |
| public function whereInSubQuery(User $user) | |
| { | |
| $queryBuilder = $this->createQueryBuilder('my_repository'); | |
| $queryBuilder | |
| ->where( | |
| $queryBuilder->expr()->in( |