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
#[macro_use] | |
extern crate derive_more; | |
use std::ops::{Add, Sub, Div, Mul}; | |
#[derive(Debug, Clone, Copy, Add, Mul)] | |
pub struct Vec3 { | |
pub x: f64, | |
pub y: f64, | |
pub z: f64, | |
} |
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::fmt::Debug; | |
use widget::Widget; | |
use xcb; | |
pub struct Window { | |
connection: xcb::Connection, | |
id: u32, | |
widgets: Vec<Box<Widget>>, | |
} |
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
╰ ➤ find | grep Cargo.toml | xargs wc -l | sort -n | |
4 ./src/tools/tidy/Cargo.toml | |
6 ./src/tools/remote-test-client/Cargo.toml | |
6 ./src/tools/remote-test-server/Cargo.toml | |
8 ./src/tools/cargotest/Cargo.toml | |
8 ./src/tools/linkchecker/Cargo.toml | |
9 ./src/libarena/Cargo.toml | |
9 ./src/libfmt_macros/Cargo.toml | |
9 ./src/libgraphviz/Cargo.toml | |
9 ./src/librustc_platform_intrinsics/Cargo.toml |
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
import numpy as np | |
from scipy.misc import imsave | |
max_y = 0 | |
max_x = 0 | |
with open('Stego_3.txt') as f: | |
contents = f.readlines() | |
coordinates = [] |
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
//! ```cargo | |
//! [dependencies] | |
//! termbox_simple = "0.2.0" | |
//! ``` | |
extern crate termbox_simple; | |
use termbox_simple::Termbox; | |
use std::sync::{Arc, Mutex}; | |
use std::thread; |
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
error[E0599]: no method named `for_each` found for type `std::boxed::Box<websocket::<unnamed>::Future<Error=websocket::WebSocketError, Item=(websocket::client::async::Framed<websocket::client::async::TlsStream<tokio_core::net::TcpStream>, websocket::async::MessageCodec<websocket::OwnedMessage>>, websocket::header::Headers)> + 'static>` in the current scope | |
--> src/main.rs:31:10 | |
| | |
31 | .for_each(|_| println!("test")); | |
| ^^^^^^^^ | |
| | |
= note: the method `for_each` exists but the following trait bounds were not satisfied: | |
`std::boxed::Box<websocket::<unnamed>::Future<Error=websocket::WebSocketError, Item=(websocket::client::async::Framed<websocket::client::async::TlsStream<tokio_core::net::TcpStream>, websocket::async::MessageCodec<websocket::OwnedMessage>>, websocket::header::Headers)>> : websocket::<unnamed>::Stream` | |
`std::boxed::Box<websocket::<unnamed>::Future<Error=websocket::WebSocketError, Item=(websocket::client::async::Framed<websocket::client::async::Tl |
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
Total time: 16.4064 s | |
File: neufeld_plots.py | |
Function: main at line 1 | |
Line # Hits Time Per Hit % Time Line Contents | |
============================================================== | |
1 @profile | |
2 def main(): | |
3 1 168872.0 168872.0 1.0 import numpy as np | |
4 1 108349.0 108349.0 0.7 import matplotlib |
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
error: failed to run custom build command for `openssl v0.7.14` | |
process didn't exit successfully: `/home/ben/discord-rs/target/debug/build/openssl-52416aa69a800e6e/build-script-build` (exit code: 101) | |
--- stdout | |
TARGET = Some("x86_64-unknown-linux-gnu") | |
OPT_LEVEL = Some("0") | |
TARGET = Some("x86_64-unknown-linux-gnu") | |
HOST = Some("x86_64-unknown-linux-gnu") | |
TARGET = Some("x86_64-unknown-linux-gnu") | |
TARGET = Some("x86_64-unknown-linux-gnu") | |
HOST = Some("x86_64-unknown-linux-gnu") |
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
let runner = ClientBuilder::new(&url) | |
.unwrap() | |
.add_protocol("rust-websocket") | |
.async_connect_secure(None, &core.handle()) | |
.and_then(|(duplex, _)| { | |
let (sink, stream) = duplex.split(); | |
stream.filter_map(|message| { | |
match message { | |
OwnedMessage::Text(t) => { | |
if let Ok(Standard(slackmessage)) = serde_json::from_str::<slack_api::Message>(&t) { |
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
DEBUG 2018-02-16T07:58:37Z: discord::async: connected to discord w/ heartbeat 41250ms. | |
DEBUG 2018-02-16T07:58:37Z: discord::async: send: Object({"d": Object({"compress": Bool(true), "large_threshold": Number(250), "properties": Object({"$browser": String("Discord library for Rust"), "$device": String("discord-rs"), "$os": String("linux"), "$referrer": String(""), "$referring_domain": String("")}), "token": String("Bot MTc2MTM1Njg4NjY2NzQyNzg0.DTQ_hg.HRKyVQHLOLtEKwexb0j_tmoroso"), "v": Number(6)}), "op": Number(2)}) | |
DEBUG 2018-02-16T07:58:38Z: discord::model: Unhandled keys: Game has Object({"timestamps": Object({"start": Number(1518755284048)})}) | |
DEBUG 2018-02-16T07:58:38Z: discord::model: Unhandled keys: Game has Object({"assets": Object({"large_image": String("spotify:702ea459eef6df07fec7756a0a38b2452e9c9d4d"), "large_text": String("Reflection (Deluxe)")}), "details": String("Everlasting Love"), "flags": Number(48), "party": Object({"id": String("spotify:83888634339528704")}), "session_id": String("ed449fa5 |