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 | |
declare(strict_types=1); | |
namespace Kdyby\Annotations\DI; | |
use Doctrine\Common\Annotations\AnnotationReader; | |
use Doctrine\Common\Annotations\CachedReader; | |
use Doctrine\Common\Annotations\Reader; | |
use Kdyby\DoctrineCache\DI\DoctrineCacheExtension; |
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 | |
/* | |
* @copyright Copyright (c) 2016 Ubiquiti Networks, Inc. | |
* @see https://www.ubnt.com/ | |
*/ | |
namespace AppBundle\Database; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; | |
use Doctrine\DBAL\Types\ConversionException; |
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
mobil - hlavička moc velká | |
mobil - vypnout popup | |
mobil - na detailu košík před popis, nadpis na obrázkem | |
kontakt - přidat mapu | |
menu - hover | |
analytics - cíl na konverzní poměr | |
hledání - obrázky, css kategorie |
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 | |
declare(strict_types=1); | |
namespace Tests\Listener; | |
use PHPUnit\Framework\BaseTestListener; | |
use PHPUnit\Framework\Test; | |
class MemoryListener extends BaseTestListener |
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
import sys | |
import unitypack | |
from unitypack.asset import Asset | |
if len(sys.argv) < 3: | |
print("Usage: " + sys.argv[0] + " assetfile.assets (offset | offsetfile.txt)\nOffset file formatting: per line \"offset [printout name]\"") | |
exit() | |
try: | |
targetOffsets = [[int(sys.argv[2], 0), sys.argv[2]]] |
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 declare(strict_types = 1); | |
namespace App\Library\Doctrine\Subscriber; | |
use Doctrine\Common\EventSubscriber; | |
use Doctrine\ORM\Event\LoadClassMetadataEventArgs; | |
use Doctrine\ORM\Events; | |
use Doctrine\ORM\Mapping\ClassMetadata; | |
final class DeferredExplicitTrackingPolicySubscriber implements EventSubscriber |
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 declare(strict_types=1); | |
namespace App\Library\DataStructures; | |
use Ds\Vector; | |
use Iterator; | |
use IteratorAggregate; | |
final class OrderedCollection implements IteratorAggregate | |
{ |
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 declare(strict_types = 1); | |
namespace App\Core\Tests\Infrastructure\Doctrine; | |
use App\Library\Test\KernelTestCase; | |
use Symfony\Bundle\FrameworkBundle\Console\Application; | |
use Symfony\Component\Console\Input\ArrayInput; | |
use Symfony\Component\Console\Output\BufferedOutput; | |
final class MigrationsUpToDateTest extends KernelTestCase |
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
git clone git@github.com:docker-library/php.git docker-library-php | |
## Go to the specific version you're interested in | |
cd docker-library-php/7.1/fpm/alpine | |
## Edit the .Dockerfile. | |
## Change | |
## ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data | |
## to | |
## ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --enable-debug | |
## Comment out or delete: |
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 declare(strict_types = 1); | |
use Google\Cloud\Logging\LoggingClient; | |
$client = new LoggingClient(['projectId' => $projectId]); | |
$logger = $client->psrLogger( | |
'app', | |
[ | |
'resource' => [ | |
'type' => 'cloud_function', |