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::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, |
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 | |
# 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 |
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
// 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) |