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 Opencv < Formula | |
desc "Open source computer vision library" | |
homepage "https://opencv.org/" | |
url "https://github.com/opencv/opencv/archive/refs/tags/4.8.1.tar.gz" | |
sha256 "62f650467a60a38794d681ae7e66e3e8cfba38f445e0bf87867e2f2cdc8be9d5" | |
license "Apache-2.0" | |
revision 4 | |
livecheck do | |
url :stable |
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
import { NgZone } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
export function enterZone(zone: NgZone) { | |
return <T>(source: Observable<T>) => | |
new Observable<T>(observer => | |
source.subscribe({ | |
next: (x) => zone.run(() => observer.next(x)), | |
error: (err) => observer.error(err), | |
complete: () => observer.complete() |
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 SocialAuth\Adapter; | |
class HybridAuthAdapter | |
{ | |
protected $hybridAuth; | |
public function __construct($hybridAuth) | |
{ | |
$this->hybridAuth = $hybridAuth; |
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 | |
$ab = $this->dm->getDocumentCollection('Document\Test')->createAggregationBuilder(); | |
if (is_array($filter)) { | |
/* Here $filter is an array which could be $qb->getQuery()->getQuery()['query'] | |
* or manually crafted | |
* example [ '$and' => [ 'name' => 'keyword'] ] | |
*/ | |
$ab->match(); // <-- how to pass query array to match stage? | |
} else { |