Source : Learn to combine RxJs sequences with super intuitive interactive diagrams
View torrc
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},{??} |
View AppBundle.php
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; |
View http-service-watchdog.php
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); | |
View TimezoneType.php
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: |
View regexp-date-validation.php
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} | |
) |
View check-ip.php
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; |
View Twig\Node\Module.php
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 { |
View SwiftmailerDoubleDotBugCase
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 |