Skip to content

Instantly share code, notes, and snippets.

View ales-tsurko's full-sized avatar

Ales Tsurko ales-tsurko

View GitHub Profile
use std::sync::Arc;
use std::thread;
const THRESHOLD: usize = 1000;
fn main() {
let input: Vec<u64> = (0..2000).collect();
let result = splitter(input.clone(), |v| v * 2);
assert_eq!(
result,
#!/bin/bash
# This installs alacritty terminal on ubuntu (https://github.com/jwilm/alacritty)
# You have to have rust/cargo installed for this to work
# Install required tools
sudo apt-get install -y cmake libfreetype6-dev libfontconfig1-dev xclip
# Download, compile and install Alacritty
git clone https://github.com/jwilm/alacritty
@ales-tsurko
ales-tsurko / halfband.c
Created November 27, 2015 16:23 — forked from notwa/halfband.c
polyphase halfband filter generator
// C port of http://ldesoras.free.fr/prod.html#src_hiir
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <errno.h>
const double PI = 3.1415926535897932384626433832795;
void
compute_transition_param(double *kp, double *qp, double transition)