This file contains hidden or 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::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 { |
This file contains hidden or 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 nickel; | |
extern crate yaml_rust; | |
use nickel::{ Nickel, HttpRouter }; | |
use yaml_rust::{ Yaml, YamlEmitter }; | |
mod yaml_handler; | |
fn get_yaml() -> String { |
This file contains hidden or 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
// XML parsing adventure | |
#![license = "MIT"] | |
#![feature(phase)] | |
// extern crate simhash; | |
#[phase(plugin)] | |
extern crate peg_syntax_ext; |
NewerOlder