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,
@ales-tsurko
ales-tsurko / install-alacritty-ubuntu.sh
Last active October 13, 2021 20:27 — forked from Aaronmacaron/install-alacritty-ubuntu.sh
Install Alacritty on Ubuntu
#!/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)