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
| 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
| ### 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
| { | |
| "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
| use lazy_static::lazy_static; | |
| use std::sync::{RwLock, Mutex}; | |
| use std::cell::Cell; | |
| lazy_static! { | |
| static ref SINGLETON: Mutex<Option<Singleton>> = Mutex::new(None); | |
| } | |
| #[derive(Debug, PartialEq)] | |
| struct Singleton { |
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
| [ | |
| 1200, | |
| { | |
| "backcolor": "#ffffff", | |
| "name": "Moonlander Base", | |
| "author": "originally by ilya sheprut aka optozorax, forked by mike lubinets aka mersinvald", | |
| "radii": "", | |
| "switchMount": "", | |
| "switchBrand": "", | |
| "switchType": "" |
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
| [ | |
| 1200, | |
| { | |
| "backcolor": "#ffffff", | |
| "name": "Moonlander English", | |
| "author": "originally by ilya sheprut aka optozorax, forked by mike lubinets aka mersinvald", | |
| "radii": "", | |
| "switchMount": "", | |
| "switchBrand": "", | |
| "switchType": "" |
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
| [ | |
| 1200, | |
| { | |
| "backcolor": "#ffffff", | |
| "name": "Moonlander Russian", | |
| "author": "originally by ilya sheprut aka optozorax, forked by mike lubinets aka mersinvald", | |
| "radii": "", | |
| "switchMount": "", | |
| "switchBrand": "", | |
| "switchType": "" |
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
| [ | |
| 1200, | |
| { | |
| "backcolor": "#ffffff", | |
| "name": "Moonlander Yellow", | |
| "author": "originally by ilya sheprut aka optozorax, forked by mike lubinets aka mersinvald", | |
| "radii": "", | |
| "switchMount": "", | |
| "switchBrand": "", | |
| "switchType": "" |
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
| [ | |
| 1200, | |
| { | |
| "backcolor": "#ffffff", | |
| "name": "Moonlander Red", | |
| "author": "originally by ilya sheprut aka optozorax, forked by mike lubinets aka mersinvald", | |
| "radii": "", | |
| "switchMount": "", | |
| "switchBrand": "", | |
| "switchType": "" |