I hereby claim:
- I am jakzal on github.
- I am jakubzalas (https://keybase.io/jakubzalas) on keybase.
- I have a public key ASDymt67mEWq_8pwxEXefRL4POa25z_680ovmggZWKTKHQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
declare(strict_types=1); | |
namespace Zalas\Test\MarkdownSpec; | |
class DataSet implements \IteratorAggregate | |
{ | |
/** | |
* @var array | |
*/ |
sealed trait Suit | |
sealed case class Hearts() extends Suit { | |
override def toString = "♡" | |
} | |
sealed case class Diamonds() extends Suit { | |
override def toString = "♢" | |
} | |
sealed case class Clubs() extends Suit { | |
override def toString = "♧" | |
} |
<?php | |
declare(strict_types=1); | |
namespace Zalas\PHPUnit\Injector\Symfony\TestCase; | |
use Symfony\Component\DependencyInjection\ResettableContainerInterface; | |
use Symfony\Component\HttpKernel\KernelInterface; | |
/** | |
* Mimics the behaviour of Symfony's KernelTestCase. |
<?php | |
function flat_map(callable $callback, array $collection) { | |
return array_merge([], ...array_map($callback, $collection)); | |
}; |
<?php | |
declare(strict_types=1); | |
namespace Zalas\Tests; | |
use PHPUnit\Framework\TestCase; | |
class ExampleTest extends TestCase | |
{ | |
/** |
<?php | |
namespace Zalas\Infrastructure\Scraper; | |
use OldSound\RabbitMqBundle\RabbitMq\Consumer; | |
use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface; | |
use OldSound\RabbitMqBundle\RabbitMq\ProducerInterface; | |
use PhpAmqpLib\Connection\AbstractConnection; | |
use PhpAmqpLib\Connection\AMQPLazyConnection; | |
use PhpAmqpLib\Exception\AMQPTimeoutException; |
import scala.collection.JavaConverters._ | |
object Solution { | |
case class Tree(var x: Int, var l: Tree, var r: Tree) | |
def solution(t: Tree): Int = { | |
count(0, t) | |
} | |
def count(previousTurn: Int, t: Tree): Int = { |
#!/bin/bash | |
set -e | |
set -u | |
set -o pipefail | |
COMMAND=${1:-"help"} | |
MACHINE_NAME=myapp | |
DENV=${DENV:-"dev"} |
.git/ |