Skip to content

Instantly share code, notes, and snippets.

@znerol
znerol / Dockerfile
Created April 27, 2019 20:59
Build instructions for AEO-light (centos)
FROM centos:7
RUN yum makecache fast && yum groupinstall -y 'Development Tools'
RUN mkdir -p /src
# Build libdpx
WORKDIR /src
RUN git clone https://github.com/PatrickPalmer/dpx.git
WORKDIR /src/dpx
@znerol
znerol / Dockerfile
Created April 27, 2019 20:56
Build instructions for AEO-light (debian)
FROM debian:stretch
# Install basic build dependencies
RUN apt-get update && apt-get -y install \
autoconf automake build-essential git libtool python-minimal
RUN mkdir -p /src
# Build libdpx
WORKDIR /src
def contract(g, f):
"""
Returns a directed acyclic graph with all vertices from the input DAG for
which f() returns True.
"""
vertices = [v for v in g.keys() if f(v)]
result = defaultdict(set, ((v, set()) for v in vertices))
stack = zip(vertices, vertices)
while len(stack):
<?php
/**
* Implements hook_expire_cache().
*
* Expire cache support for the builtin cache handler.
*/
function authcache_builtin_expire_v2_expire_cache($urls, $wildcards, $object_type, $object) {
$cids = array();
$wildcard_cids = array();
diff --git a/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php b/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php
index 2bd0750..3a1385c 100644
--- a/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php
+++ b/src/Symfony/Component/EventDispatcher/Tests/AbstractEventDispatcherTest.php
@@ -12,10 +12,9 @@
namespace Symfony\Component\EventDispatcher\Tests;
use Symfony\Component\EventDispatcher\Event;
-use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
<?php
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\Request;
$autoloader = require_once __DIR__ . '/vendor/autoload.php';