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
/******/ // Fetch + compile chunk loading for webassembly | |
/******/ | |
/******/ var wasmModules = {"0":["./wasm/artist_page_webapp_client_bg.wasm"]}[chunkId] || []; | |
/******/ | |
/******/ wasmModules.forEach(function(wasmModuleId) { | |
/******/ var installedWasmModuleData = installedWasmModules[wasmModuleId]; | |
/******/ | |
/******/ // a Promise means "currently loading" or "already loaded". | |
/******/ if(installedWasmModuleData) | |
/******/ promises.push(installedWasmModuleData); |
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
extern crate simply_service; | |
use { | |
simply_service::{Request, Response, Server, Method}, | |
}; | |
fn serve_html<T>(_: &T, _request: &Request) -> Result<Response, String> { | |
let body = include_str!("../index.html").into(); | |
Ok(Response { | |
body, |
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
extern crate futures; | |
#[macro_use] extern crate log; | |
extern crate serde; | |
#[macro_use] extern crate serde_derive; | |
extern crate simply_service; | |
use { | |
std::sync::atomic::{AtomicUsize, Ordering}, | |
simply_service::{Request, Response, Server, Method}, |
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
extern crate cgmath; | |
extern crate gfx_backend_gl; | |
extern crate gfx_hal; | |
extern crate glsl_to_spirv; | |
extern crate image; | |
extern crate winit; | |
#[macro_use] extern crate slog; | |
extern crate sloggers; | |
use { |
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
use { | |
rivr::{ | |
attributes::{PanelText, PanelSize, AxisSize, PanelBox, Orientation, Srgba}, | |
input::{FrameCollision}, | |
panels::{ButtonPanel, EmptyPanel, StackPanel}, | |
Ui, Event, | |
}, | |
}; | |
pub struct UiSystem { |
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
#![feature(proc_macro)] | |
#[macro_use] | |
extern crate stdweb; | |
pub mod export; | |
use std::fmt::{Write}; | |
struct Console { |
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
Mr Robot features a character named "Mr Robot", who is an anarchist and leader of a hacking group called "fsociety". | |
By the end of the first season it's revealed Eliot is the only person who can see Mr Robot and whenever Mr Robot had | |
been talking to other people, it was actually Eliot talking. Eliot was the leader of the hacking group all along but | |
only he himself didn't know that. | |
Re-watching it it's shot really smart, they always position Mr Robot inbetween who he's talking to and Eliot so the | |
direction people are looking is always correct. There's tons of little weird lines that make no sense until this | |
reveal. |
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
pub fn new() -> Self { | |
let mut background_area = Rect::new(50.0, 500.0, 1180.0, 200.0); | |
background_area.x = 25.0; | |
Menu { | |
options: Vec::new(), | |
background_area, | |
options_anchor: Point2::new(96.0, 516.0), | |
col_max: 5, |
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 handle_connection<H: Handler>( | |
log: &Logger, | |
our_public_key: &PublicKey, our_secret_key: &SecretKey, | |
mut stream: TcpStream, handler: &H | |
) -> | |
Result<(), NetworkingError> | |
{ | |
// Set up the logger for this new connection | |
let connection_log = log.new(o!("peer" => stream.peer_addr()?.to_string())); | |
info!(connection_log, "Starting new connection"); |
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
// Scoping issue with emscripten in node modules, included until fix is in stable. | |
// Fixed in: https://github.com/kripken/emscripten/commit/fe5ad199c5ab4d6f3615a24d6868190352455da6 | |
global.simdPhase2 = true; | |
let rust = require('screeps-layl'); | |
// Provide the global link between screeps and Rust | |
if (typeof __globals !== 'undefined') { | |
// We're in sim | |
global.screepsEmbindLink = __globals; |