Source : Learn to combine RxJs sequences with super intuitive interactive diagrams
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 | |
require_once './vendor/autoload.php'; | |
$username = '%username%'; | |
$password = '%password%'; | |
$to = '%to%'; | |
$body = | |
<<<BODY |
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
protected function compileDisplayBody(Twig_Compiler $compiler) | |
{ | |
$filename = $this->getAttribute('filename'); | |
$compiler->write("echo '<!-- START " . $filename . (null !== $this->getNode('parent') ? " (has parent)" : '') . " -->';\n"); | |
$compiler->subcompile($this->getNode('body')); | |
if (null !== $this->getNode('parent')) { | |
if ($this->getNode('parent') instanceof Twig_Node_Expression_Constant) { | |
$compiler->write("\$this->parent"); | |
} else { |
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
#!/usr/bin/env php | |
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 'On'); | |
set_time_limit(0); | |
$triesNumber = 5; | |
$timeout = 5; |
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
$pattern = | |
'/^ | |
# year | |
(?!0000)\pN{2}(?:( | |
(?: | |
# leap year | |
([02468])|[13579])(?(2)[048]|[26]))(?(?<=00)(?(?<=[02468].{3})(?<=[048].{2})|(?<=[26].{2})))| | |
# non-leap year | |
\pN{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 | |
/** | |
* A modified version of the original symfony form type that adds the timezone offset. | |
* | |
* Original version at: | |
* https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Form/Extension/Core/Type/TimezoneType.php | |
*/ | |
/* | |
* Installation: |
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
#!/usr/bin/env php | |
<?php | |
ini_set('display_errors', 'On'); | |
error_reporting(E_ALL); | |
set_time_limit(0); | |
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 AppBundle; | |
use Symfony\Component\DependencyInjection\Compiler\PassConfig; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | |
use AppBundle\DependencyInjection\Compiler\DisableAclVoterPass; |
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
ExcludeExitNodes {af},{am},{by},{cn},{hk},{hu},{ir},{kz},{kg},{md},{rs},{ru},{ro},{rs},{tj},{tm},{ua},{uz},{ve},{??} | |
ExcludeNodes {af},{am},{by},{cn},{hk},{hu},{ir},{kz},{kg},{md},{rs},{ru},{ro},{rs},{tj},{tm},{ua},{uz},{ve},{??} |