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 | |
declare(strict_types=1); | |
printf("Current PHP version: %s\n", phpversion()); | |
$iterations = (int)($_SERVER['argv'][1] ?? 2000); | |
printf("Bench iterations: %d\n", $iterations); | |
$time = microtime(true); | |
//$input = array_map('intval', str_split(str_repeat(trim(file_get_contents('input.txt')), 100))); |
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 AppBundle\Tests; | |
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | |
class ServiceAvailabilityFunctionalTest extends KernelTestCase | |
{ | |
protected $serviceBlacklist = [ | |
'request', |
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 | |
class SymfonyCleanupStandard_Sniffs_Form_DeprecatedTypeOptionsSniff extends PHP_CodeSniffer_Standards_AbstractScopeSniff | |
{ | |
/** | |
* @inheritdoc | |
*/ | |
public function __construct() | |
{ | |
parent::__construct(array(T_CLASS), array(T_FUNCTION), false); |
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 AppBundle\DependencyInjection; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; | |
use Symfony\Component\HttpKernel\DependencyInjection\Extension; | |
class AppExtension extends Extension implements PrependExtensionInterface | |
{ |
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
#target illustrator | |
function main() | |
{ | |
var sourceDir, | |
destDir, | |
files, | |
sourceDoc, | |
sizes; |
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
# [...] # | |
framework: | |
# Uncomment the 'ide' option to turn all of the file paths in an exception | |
# page into clickable links that open the given file using your favorite IDE. | |
# Supported values are 'textmate', 'macvim', 'emacs' and 'sublime' shortcuts | |
# and any custom configuration string, such as: "phpstorm://open?file=%%f&line=%%l" | |
# See http://symfony.com/doc/current/reference/configuration/framework.html#ide | |
ide: "pstorm://open?file=%%f&line=%%l" |
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 AppBundle\Form\Type; | |
use AppBundle\Form\DataTransformer\BoolToIntTransformer; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolver; | |
class BoolChoiceType extends AbstractType |
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
<VirtualHost *:80> | |
#ServerName www.example.com | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/projects | |
<Directory /var/www/projects> | |
# enable the .htaccess rewrites | |
AllowOverride All | |
Require all granted |
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
#user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<scheme name="CopyOfDefault" version="124" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="12" /> | |
<option name="EDITOR_FONT_NAME" value="Monospaced" /> | |
<colors /> | |
<attributes> | |
<option name="ABSTRACT_CLASS_NAME_ATTRIBUTES"> | |
<value /> | |
</option> |
NewerOlder