- About 70% of materials covered after 2nd midterm
- About 30% of materials covered before 2nd midterm
- Exact execution steps
- Worst-case time complexities
- Graphs and graph traversal
| float f0 = f0_from_ref_idx(ref_idx); | |
| float fresnel = schlick(saturate(cosine), f0); | |
| if(refract(r_in.direction(), outward_normal, ni_over_nt, refracted)) { | |
| reflect_prob = fresnel; | |
| } | |
| else { | |
| reflect_prob = 1.0; | |
| } |
| enum BufferUsage { | |
| Uniform, | |
| Vertex, | |
| Index, | |
| } | |
| enum Format { | |
| R64Float, | |
| Rg64Float, | |
| Rgb64Float, |
| enum Format { | |
| Float32, | |
| Float32x2, | |
| Float32x3, | |
| Float32x4, | |
| Uint16, | |
| Uint32, | |
| } | |
| struct VertexAttribDesc { |
| Finished dev [unoptimized + debuginfo] target(s) in 0.76s | |
| Running target/debug/deps/amethyst_gl_segfault-2eaa6ccbeb2b8746 | |
| running 1 test | |
| test tests::segfault ... FAILED | |
| failures: | |
| ---- tests::segfault stdout ---- | |
| thread 'tests::segfault' panicked at 'Windows can only be created on the main thread on macOS', /Users/gray/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.15.1/src/platform/macos/window.rs:576:17 |
| extern crate ggez; | |
| use ggez::*; | |
| use ggez::graphics::{DrawMode, Point}; | |
| use std::time::Duration; | |
| struct MainState { | |
| imagebuffer: Vec<u8>, // represents an image, groupings of 4 values (R,G,B,A) representing one pixel. | |
| width: usize, | |
| height: usize, | |
| i: u8, |
| #[cfg(test)] | |
| mod tests { | |
| use super::*; | |
| use data_encoding::HEXUPPER; | |
| #[test] | |
| fn properly_deserializes_message() { | |
| let message_raw = Bytes::from(HEXUPPER.decode(b"5243050501020000FF").unwrap()); | |
| let mut buf = BytesMut::from(message_raw.clone()); | |
| let header_bytes = buf.split_to(8); |
| [2018-03-12][14:34:15][nano_rs][INFO] Starting nano-rs! | |
| [2018-03-12][14:34:15][nano_rs][INFO] Listening on: [::1]:7075 | |
| [2018-03-12][14:34:15][nano_rs][INFO] Found initial peer: 139.162.199.142:7075 | |
| [2018-03-12][14:34:15][nano_rs][INFO] Found initial peer: 138.201.94.249:7075 | |
| [2018-03-12][14:34:15][nano_rs][INFO] Found initial peer: 128.199.199.97:7075 | |
| [2018-03-12][14:34:15][nano_rs][INFO] Found initial peer: 192.99.176.122:7075 | |
| [2018-03-12][14:34:15][nano_rs][INFO] Found initial peer: 192.99.176.121:7075 | |
| [2018-03-12][14:34:15][nano_rs][INFO] Found initial peer: 45.32.246.108:7075 | |
| [2018-03-12][14:34:15][nano_rs][INFO] Found initial peer: 138.68.2.234:7075 | |
| [2018-03-12][14:34:15][nano_rs][INFO] Found initial peer: 144.217.167.119:7075 |
| ////////////////////////////// | |
| ///////// CAUTION!!! ///////// | |
| //// ANY NANO YOU SEND TO //// | |
| //// AN ADDRESS YOU MAKE //// | |
| //// WITH THIS TOOL YOU //// | |
| //// CANNOT GET BACK!!!! //// | |
| //// THAT NANO IS GONE //// | |
| //////// FOREVER!!!! ///////// | |
| ////////////////////////////// | |
| /////// HOW TO USE: ////////// |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>RippleWarpWallet - deterministic Ripple wallet generator</title> | |
| <meta charset="utf-8"> | |
| <script type="text/javascript"> | |
| // --------------------------------------------------------------- | |
| // | |
| // Hello, WarpWallet friend! |