How to interface with a Stream Deck device.
The device uses the HID protocol to communicate with its software.
use std::collections::HashMap; | |
use std::thread; | |
use std::thread::sleep; | |
use std::time::Duration; | |
use streamdeck::StreamDeck; | |
const ELGATO_VENDOR_ID: u16 = 0x0fd9; | |
use rusb::{Context, Device, HotplugBuilder, UsbContext}; | |
<?php | |
class Collection<T> | |
{ | |
private T[] $items = []; | |
public function add(T $item): void | |
{ | |
$this->items[] = $item; | |
} |
name: CI | |
on: [push] | |
jobs: | |
test-php: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [7.3, 7.4] |
I hereby claim:
To claim this, I am signing this object:
{% for label, flashes in app.session.flashbag.all %} | |
{% for flash in flashes %} | |
<div class="alert alert-{{ label }}"> | |
{{ flash }} | |
</div> | |
{% endfor %} | |
{% endfor %} |
<?php | |
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() | |
{ | |
$bundles = array( |
<?php | |
namespace TataJerem\Bundle\DemoBundle\EventListener; | |
use Doctrine\Common\Annotations\Reader; | |
use Doctrine\Common\Util\ClassUtils; | |
use Symfony\Component\HttpKernel\Event\FilterControllerEvent; | |
use Symfony\Component\Security\Core\Exception\AccessDeniedException; | |
use Symfony\Component\Security\Core\SecurityContext; | |
use TataJerem\Bundle\DemoBundle\Annotation\Permissions; |