Skip to content

Instantly share code, notes, and snippets.

View masseelch's full-sized avatar

Jannik Clausen masseelch

View GitHub Profile
@masseelch
masseelch / FullTextSearchFilter.php
Last active September 19, 2022 19:43
(Kind of a) api-platform full-text search filter.
<?php
namespace App\Filter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
use ApiPlatform\Core\Exception\InvalidArgumentException;
use Doctrine\ORM\QueryBuilder;
@masseelch
masseelch / downloader.go
Last active March 26, 2021 09:04
Canceable Go Downloader With Progress Report
package client
import (
"comlink"
"context"
"encoding/json"
"fmt"
"github.com/recws-org/recws"
"github.com/spf13/viper"
"io"