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
| library(compiler) | |
| enableJIT(3) | |
| # proprietary analytic functions | |
| source("functions.R") | |
| # database helper functions | |
| source("database.R") | |
| library(DSTrading) | |
| library(ggplot2) | |
| library(tidyverse) | |
| library(lubridate) |
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::io::timer; | |
| use std::time::Duration; | |
| use std::sync::Future; | |
| trait Constraint { | |
| fn is_satisfied(&self) -> bool; | |
| } | |
| #[deriving(Send)] | |
| struct Foo { | |
| name: &'static str, |
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::io::timer; | |
| use std::time::Duration; | |
| use std::sync::Future; | |
| trait Constraint { | |
| fn is_satisfied(&self) -> bool; | |
| } | |
| #[deriving(Send)] | |
| struct Foo { name: &'static str, a: bool, b: bool } | |
| #[deriving(Send)] |
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
| fn member<T>(elem: T, vec: ~[T]) -> bool { | |
| for vec.iter().advance |vec_elem| { | |
| if elem == *vec_elem { return true; } | |
| } | |
| return false; | |
| } |