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
""" | |
daemon | |
~~~~~~ | |
A simple daemon. | |
:copyright: (c) 2015 by Shipeng Feng. | |
:license: BSD. | |
""" | |
import os |
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
""" | |
stream | |
~~~~~~ | |
Streaming data with Python and Flask. | |
:copyright: (c) 2014 by Shipeng Feng. | |
:license: BSD. | |
""" | |
import time |
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
fn main() { | |
println!("Hello, world!") | |
println!("{}", add(1i, 2i)) | |
println!("{}", add(1.0f64, 2.0f64)) | |
} | |
fn add<T: Add<T, T>>(x :T, y: T) -> T{ | |
x + y | |
} |