npm install ws
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Serializer; | |
use Liip\ImagineBundle\Imagine\Cache\CacheManager; | |
use Sylius\Component\Core\Model\ImageInterface; | |
use Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface; | |
use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface; | |
use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} | |
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #} | |
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} | |
<time datetime="{{ field.value|date('c') }}" title="{{ field.value|date('r') }}">{{ field.formattedValue }}</time> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = parse_url(getenv('CLOUDAMQP_URL')); | |
$vhost = substr($url['path'], 1); | |
$credentials = [ | |
'host' => $url['host'], | |
'vhost' => $vhost, | |
'login' => $url['user'], | |
'password' => $url['pass'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://json.schemastore.org/resume", | |
"meta": { | |
"theme": "kendall" | |
}, | |
"basics": { | |
"name": "Valentin Silvestre", | |
"label": "Developer", | |
"image": "https://avatars.githubusercontent.com/u/17164385?v=4", | |
"email": "[email protected]", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use Elasticsearch\ClientBuilder; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Console\SingleCommandApplication; | |
use Symfony\Component\Serializer\Encoder\JsonDecode; | |
use Symfony\Component\Serializer\Normalizer\ArrayDenormalizer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rows = document.querySelectorAll("#listTab_319776288 > tbody > tr"); | |
var output = 'init'; | |
var notes = 0; | |
var notesParUe = 0; | |
var nbNotesParUe = 0; | |
rows.forEach(function(row) { | |
var columns = row.querySelectorAll("td"); | |
if (columns.length === 1) { | |
if (output !== '') { | |
//console.log(notesParUe);console.log(nbNotesParUe); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Benchmark | |
{ | |
private: | |
bool started = false; | |
bool benched = false; | |
float functionCalls = 0; | |
std::chrono::high_resolution_clock::time_point startHash; | |
std::chrono::high_resolution_clock::time_point startBenchmark; | |
public: | |
void |
NewerOlder