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
| { | |
| "729bfe0bdc58f2a1c2adfa4cd61d4c62437c7abbe97d817486f6321ce17cc430" : { | |
| "right_behavior": "Ok", | |
| "callcreates" : [ | |
| { | |
| "data" : "0x", | |
| "destination" : "", | |
| "gasLimit" : "0xe8d4a492f7", | |
| "value" : "0x01" | |
| } |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am mersinvald on github. | |
| * I am mersinvald (https://keybase.io/mersinvald) on keybase. | |
| * I have a public key ASDkXYQcJJguZtbBRuuP65gjIIQRhQVsdeRRk12jlfn8pgo | |
| To claim this, I am signing this object: |
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
| struct BookInfo { | |
| /* ... */ | |
| } | |
| fn fetch_book_info(uri: String) -> impl Future<Item = BookInfo, Error = String> { | |
| client::get(&uri).finish().unwrap() | |
| .send() | |
| .map_err(|_| format!("Send request failed")) | |
| .and_then(|response| collect_response_data(response)) | |
| .and_then(parse_response) |
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
| #![feature(test)] | |
| extern crate test; | |
| fn imper(x: u8, y: u8) -> Vec<Vec<bool>> { | |
| let mut result = Vec::with_capacity(y as usize); | |
| for _ in 0..y { | |
| let mut row = Vec::with_capacity(x as usize); | |
| for _ in 0..x { | |
| row.push(false) | |
| } |
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 hyper::{Request, Response}; | |
| use hyper::server::NewService; | |
| use hyper::server::Service; | |
| use hyper; | |
| use futures::Future; | |
| use futures::future; | |
| use std::collections::BTreeMap; | |
| use std::borrow::Cow; | |
| use std::rc::Rc; | |
| use std::sync::Arc; |
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
| class ComputationQueue { | |
| Queue<Runnable> tasks = new Queue<>(); | |
| public void push_task(Runnable task) { | |
| tasks.push(task); | |
| } | |
| public void execute() { | |
| for(Task task: tasks) { | |
| task.run(); |
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
| traitobject v0.0.3 | |
| ├── error v0.1.9 | |
| │ └── iron v0.4.0 | |
| │ ├── bodyparser v0.4.1 | |
| │ │ ├── params v0.5.0 | |
| │ │ │ └── hms_api v0.1.0 (file:///home/mike/dev/rust/Innopolis/hms_api) | |
| │ │ └── urlencoded v0.4.1 | |
| │ │ └── params v0.5.0 (*) | |
| │ ├── hms_api v0.1.0 (file:///home/mike/dev/rust/Innopolis/hms_api) (*) | |
| │ ├── oven v0.4.0 |
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
| hms_api v0.1.0 (file:///home/mike/dev/rust/Innopolis/hms_api) | |
| ├── chrono v0.2.25 | |
| │ ├── num v0.1.36 | |
| │ │ ├── num-bigint v0.1.35 | |
| │ │ │ ├── num-integer v0.1.32 | |
| │ │ │ │ └── num-traits v0.1.36 | |
| │ │ │ ├── num-traits v0.1.36 (*) | |
| │ │ │ ├── rand v0.3.14 | |
| │ │ │ │ └── libc v0.2.17 | |
| │ │ │ └── rustc-serialize v0.3.19 |
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
| #![feature(inclusive_range_syntax)] | |
| macro_rules! new_model { | |
| ($struct_name:ident { | |
| $( $arg:ident : $arg_type:ty ),* | |
| }, table: $table:expr) => ( | |
| #[derive(Clone, Debug)] | |
| pub struct $struct_name { | |
| pub id: i32, | |
| $ ( |
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
| #!/bin/bash | |
| # Description: Prints how much time one could have fun with friends or make out with {girl,boy}friend, but compiled h{is,er} Gentoo | |
| # Author: Mike Lubints (aka mersinvald) 2016 | |
| # | |
| # Dependencies: | |
| # bash | |
| # bc | |
| # genlop | |
| # | |
| # Note: runs from root (or with portage rights) |