Skip to content

Instantly share code, notes, and snippets.

@mbrubeck
mbrubeck / lib.rs
Created February 1, 2016 18:29 — forked from rosacris/lib.rs
Parallel qsort
use std::cmp::Ordering;
use std::fmt::Debug;
extern crate scoped_pool;
use scoped_pool::{Pool, Scope};
/// An insertion sort for small slices
#[inline]
fn insertion_sort<T>(arr: &mut [T], left: usize, right: usize) where T: Ord {
@mbrubeck
mbrubeck / main.rs
Last active August 29, 2015 14:27 — forked from shadoi/main.rs
#[macro_use]
extern crate nickel;
extern crate yaml_rust;
use nickel::{ Nickel, HttpRouter };
use yaml_rust::{ Yaml, YamlEmitter };
mod yaml_handler;
fn get_yaml() -> String {
@mbrubeck
mbrubeck / lib.rs
Last active August 29, 2015 14:05 — forked from bartolsthoorn/lib.rs
// XML parsing adventure
#![license = "MIT"]
#![feature(phase)]
// extern crate simhash;
#[phase(plugin)]
extern crate peg_syntax_ext;