Cyfrowe radio - https://en.wikipedia.org/wiki/Digital_mobile_radio
This file contains hidden or 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
| # Multi-stage Dockerfile for Darknet (CPU-only) | |
| # Compiles Darknet from Codeberg repository for object detection | |
| # docker build -f Dockerfile.darknet --tag darknet-cpu:latest | |
| # Build stage | |
| FROM ubuntu:24.04 AS builder | |
| # Prevent interactive prompts during package installation | |
| ENV DEBIAN_FRONTEND=noninteractive |
This file contains hidden or 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 TeamConcurrentThrottle(BaseThrottle): | |
| def allow_request(self, request, view): | |
| personal_api_key = PersonalAPIKeyAuthentication.find_key_with_source(request) | |
| if request.user.is_authenticated and personal_api_key is None: | |
| return True | |
| team_id = PersonalApiKeyRateThrottle.safely_get_team_id_from_view(view) | |
| if team_id is None: | |
| return True |
This file contains hidden or 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
| @dataclass() | |
| class HogQLFunctionMeta: | |
| clickhouse_name: str | |
| min_args: int = 0 | |
| max_args: Optional[int] = 0 | |
| min_params: int = 0 | |
| max_params: Optional[int] = 0 | |
| aggregate: bool = False | |
| overloads: Optional[list[Overload]] = None | |
| """Overloads allow for using a different ClickHouse function depending on the type of the first arg.""" |
This file contains hidden or 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
| create table weather (longitude double not null, | |
| latitude double not null, | |
| time_ timestamp not null, | |
| u10 double not null, | |
| v10 double not null, | |
| snow_density float not null, | |
| snow_depth float not null, | |
| snowfall float not null, | |
| snowc double not null, | |
| smlt double not null, |
This file contains hidden or 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
| package main | |
| import ( | |
| "context" | |
| "net/http" | |
| ) | |
| func checkErr(err error) { | |
| if err != nil { | |
| panic(err) |
This file contains hidden or 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
| go test -test.v -test.bench ^BenchmarkSearch_Search.*$ -test.run ^$ | |
| goos: linux | |
| goarch: amd64 | |
| pkg: github.com/datainq/teryt/search | |
| BenchmarkSearch_SearchOld | |
| BenchmarkSearch_SearchOld-8 37 33642952 ns/op | |
| BenchmarkSearch_Search | |
| BenchmarkSearch_Search-8 152 7784588 ns/op | |
| BenchmarkSearch_SearchV3 | |
| BenchmarkSearch_SearchV3/parallel-1 |
Old levenstein:
/tmp/___gobench_github_com_datainq_teryt_search -test.v -test.bench . -test.run ^$
goos: linux
goarch: amd64
pkg: github.com/datainq/teryt/search
BenchmarkSearch_SearchOld
BenchmarkSearch_SearchOld-8 31 40371148 ns/op
BenchmarkSearch_Search
This file contains hidden or 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
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| ) |
This file contains hidden or 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
| package eu.datainq.playground; | |
| import org.apache.beam.sdk.coders.VarIntCoder; | |
| import org.apache.beam.sdk.testing.NeedsRunner; | |
| import org.apache.beam.sdk.testing.PAssert; | |
| import org.apache.beam.sdk.testing.TestPipeline; | |
| import org.apache.beam.sdk.testing.TestStream; | |
| import org.apache.beam.sdk.transforms.Create; | |
| import org.apache.beam.sdk.transforms.Sum; | |
| import org.apache.beam.sdk.transforms.WithKeys; |
NewerOlder