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
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)
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>{{.Title}}</title> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
<div id="content"> | |
{{template "content" .}} | |
</div> |
<?php | |
$builder->add('selectedFile', 'hidden', [ | |
'constraints' => [ | |
new NotBlank(), | |
new Type(['type' => 'integer', 'message' => 'Their was a failure on the internet.']) | |
] | |
]); |