Skip to content

Instantly share code, notes, and snippets.

View adammbalogh's full-sized avatar

Adam Balogh adammbalogh

View GitHub Profile
@adammbalogh
adammbalogh / phpunit.xml.dist
Last active August 29, 2015 14:21
from flysystem
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="tests/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
<?php
require 'vendor/autoload.php';
use League\BooBoo\Runner;
use League\BooBoo\Formatter\JsonFormatter;
$booboo = new Runner();
$formatter = new JsonFormatter();
$booboo->pushFormatter($formatter);
<?php
use Phprest\Util\Controller;
use Symfony\Component\HttpFoundation\Request;
use Phprest\Response;
use League\Fractal\Manager;
use League\Fractal\Resource\Item;
class Temperature extends Controller
{
public function get(Request $request, $version, $id)
a = None
a is not None # False
t = (1, 2, 3)
2 in t # True
a = 10
7 < a <= 10 # True
def is_float_equal(a, b):