Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
future ideas | |
* rule previewer | |
* I am a user in CANADA I am the FOURTH user. What do I get? | |
Notes from meeting | |
* no user should get the same question twice | |
* this could be done on the client | |
* or we could just never send the payload to the same user twice, providing a set collection primitive. | |
* we need to record how many users take each action from the responses | |
* I don't know if this is our part or something in heartbeat/input |
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::convert::Into; | |
use std::io::{self, Read, Bytes}; | |
use std::str::FromStr; | |
fn main() { | |
let mut input = io::stdin().bytes(); | |
let program = "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."; | |
let mut machine: BrainFuck = program.parse().unwrap(); | |
match machine.execute_all(&mut input) { | |
Ok(s) => print!("{}", s), |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
fn main() { | |
type One = Succ<Zero>; | |
type Two = Succ<One>; | |
type Three = Succ<Two>; | |
type Five = <Two as Add<Three>>::Result; | |
type Four = <One as Sub<Five>>::Result; | |
println!("Zero: {}", Zero::fmt()); | |
println!("One: {}", One::fmt()); | |
println!("Two: {}", Two::fmt()); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.