Contains coverage information for project dstream
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#[macro_use] | |
extern crate log; | |
use futures::prelude::*; | |
use futures::stream::StreamExt; | |
use headers::{self, HeaderMapExt}; | |
use hyper::header::{self, AsHeaderName, HeaderMap, HeaderValue}; | |
use hyper::server::Server; | |
use hyper::service::{make_service_fn, service_fn}; | |
use hyper::{self, Body, Method, Request, Response, StatusCode}; | |
use std::convert::Infallible; |
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
use std::io::{self, Write, Seek}; | |
pub struct Writer<W> { | |
inner: W | |
} | |
impl <W:Write> Writer<WrapperUnseekable<W>> { | |
pub fn new_unseekable(inner: W) -> Self { | |
Writer{ |
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
#[macro_use] | |
extern crate log; | |
use hyper::rt; | |
use hyper::server::Server; | |
use hyper::service::service_fn_ok; | |
use hyper::{Body, Request, Response}; | |
use tokio::prelude::*; | |
mod 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
#! /usr/bin/env python3 | |
import argparse | |
import os | |
import subprocess | |
import logging | |
log = logging.getLogger() | |
def main(): |
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
#!/bin/bash | |
# Author : <Ivan Zderadicka> ivan@zderadicka.eu | |
# License: MIT | |
VERSION=0.1.1 | |
BITRATE=48 | |
CUTOFF=20000 | |
APPLICATION=audio | |
FORMAT=opus | |
QUALITY=10 |
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
#!/bin/bash | |
# Author : <Ivan Zderadicka> ivan@zderadicka.eu | |
# License: MIT | |
VERSION="0.2.3" | |
BITRATE=48 | |
CUTOFF=12000 | |
SEGMENT_TIME=1800 | |
COMMON_PARAMS="-nostdin -v error" |
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
0x0004da82394ED7Aa756E6343F0A1a52609087d79 |
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
//! Simple module to implement [Sieve of Eratosthenes](https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes). | |
//! It implements both clasical sieve (starting from 2 to given limit) and segmented sieve (from min to max). | |
//! # Examples | |
//! | |
//! Primes under 20: | |
//! | |
//! ``` | |
//! use numbers::sieve::{Sieve,Eratosthenes}; | |
//! let s = Eratosthenes::new(20); | |
//! assert_eq!(s.first(), Some(2)); |
NewerOlder