Benchmark from @finscn posted here flyover/box2d.ts#9
You can test it here:
- kinematic body http://fatidol.com/phy-benchmark/box2d-ts-test.html?type=kinematic
- dynamic body + revolute joint http://fatidol.com/phy-benchmark/box2d-ts-test.html
FROM docker:dind | |
RUN apk update && apk add --no-cache py-pip && apk add --no-cache bash | |
RUN pip install docker-compose | |
COPY . /project | |
WORKDIR /project | |
COPY docker/scaan/entrypoint.sh /entrypoint.sh |
declare module "phaser-ce" { | |
export = Phaser; | |
} | |
declare class Phaser { | |
static VERSION: string; | |
static DEV_VERSION: string; | |
static GAMES: Phaser.Game[]; | |
} |
Benchmark from @finscn posted here flyover/box2d.ts#9
You can test it here:
<?php | |
namespace App\Application\Symfony\CompilerPass; | |
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\Definition; | |
use Symfony\Component\Workflow; | |
class PreviousWorkflowTransitionCompilerPass implements CompilerPassInterface |
<?php | |
/** | |
* @param FormInterface $form | |
* @return string | |
*/ | |
private function transformFormToText(FormInterface $form) | |
{ | |
$txt = ''; | |
foreach ($form->getData() as $inputName => $inputValue) { | |
$formElement = $form->get($inputName); |
import * as PIXI from 'pixi.js'; | |
document.addEventListener('DOMContentLoaded', () => { | |
let renderer = PIXI.autoDetectRenderer( | |
600, | |
400, | |
{antialias: true, transparent: false, resolution: 1, backgroundColor: 0xFFFFFF} | |
); | |
}, false); |
<?php | |
namespace AppBundle\Entity\Doctrine; | |
interface DoctrineExtensionTimestampableInterface | |
{ | |
/** | |
* @return \DateTime | |
*/ | |
public function getCreatedAt(); |
// Inside app/main.ts | |
import 'zone.js'; | |
import 'reflect-metadata'; | |
import {bootstrap} from 'angular2/platform/browser' | |
import {AppComponent} from './app.component' | |
bootstrap(AppComponent); |
<?php | |
namespace ServicePlus\CoreBundle\Service; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\EntityNotFoundException; | |
use ServicePlus\CoreBundle\Entity\Company; | |
use ServicePlus\CoreBundle\Entity\Device; | |
use ServicePlus\CoreBundle\Entity\Report; | |
use Symfony\Component\EventDispatcher\EventDispatcher; |
ICE est le protocole de synchronisation utilisé par WebRTC (en VoIP). ( https://www.wikiwand.com/en/Interactive_Connectivity_Establishment ) Il est associé aux protocoles stun et turn.
L’objet RtcPeerConnection a besoin d’un objet RTCConfiguration qui se configure en spécifiant un (ou plusieurs) serveur stun/turn.
L’outil suivant permet de monter un serveur stun & turn :
https://github.com/coturn/coturn (une image coturn
est dispo sur AWS apparemment)