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 chrono::prelude::*; | |
use chrono_tz::US::Eastern; | |
use rhai::{Engine, EvalAltResult, Scope, FnPtr, NativeCallContext}; | |
#[derive(Clone)] | |
pub struct Ts { | |
time: Vec<u64>, | |
data: Vec<f64>, | |
} |
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
[package] | |
name = "rio-event-loop-attempt" | |
version = "0.1.0" | |
edition = "2018" | |
[dependencies] | |
rio = "0.9.4" | |
slab = "0.4.3" | |
crossbeam-channel = "0.5" | |
libc = "0.2.68" |
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
from IPython.core.display import display, HTML | |
display(HTML("<style>.container { width:95% !important; } div.output_wrapper .output { padding-left: 14px; }</style>")) |
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
#!/usr/bin/ruby | |
require 'date' | |
# see also https://github.com/socketry/nio4r | |
last = Time.now.utc | |
stop = false | |
trap("SIGINT") do |
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
#![feature(duration_from_micros)] | |
extern crate hdrhistogram; | |
extern crate multiqueue; | |
extern crate chrono; | |
extern crate libc; | |
extern crate hwloc; // tested with v0.3 | |
extern crate rand; | |
use std::sync::{Arc, Mutex}; |