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
    
  
  
    
  | package wt2.notes.util; | |
| import java.util.function.Supplier; | |
| import java.util.NoSuchElementException; | |
| import java.util.Optional; | |
| public abstract class Result<T, E> { | |
| public static <T, E> Ok<T, E> Ok(T value) { | |
| return new Ok<T, E>(value); | |
| } | 
  
    
      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::io::stdin; | |
| fn main() { | |
| let mut line = String::new(); | |
| loop { | |
| let n_read = stdin().read_line(&mut line).unwrap(); | |
| println!("n_read: {}", n_read); | 
  
    
      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(io)] | |
| use std::io::{stdin,Read}; | |
| fn translate(ch: char) -> char { | |
| match ch { | |
| ' ' => '█', | |
| '█' => ' ', | |
| '▀' => '▄', | |
| '▄' => '▀', | 
  
    
      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
    
  
  
    
  | extern crate hyper; | |
| extern crate rustc_serialize; | |
| extern crate url; | |
| use rustc_serialize::json::Json; | |
| use url::Url; | |
| use std::io::Read; | |
| use hyper::Client; | 
  
    
      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-deps: nom="~1.0.0" | |
| #[macro_use] | |
| extern crate nom; | |
| use nom::*; | |
| use nom::IResult::*; | |
| use std::str::{self, FromStr}; | |
| use std::iter::FromIterator; | |
| use std::collections::HashMap; | 
  
    
      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
    
  
  
    
  | match *last_song { | |
| None => println!("No song"), | |
| Some(ref blah) => println!("{:?}", blah) | |
| } | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| SUBREDDIT="winterporn" | |
| MIN_WIDTH="1920" | |
| MIN_HEIGHT="1080" | |
| DLPATH="${HOME}/.cache/reddit_wallpaper" | |
| if [ -z "$1" ]; then | |
| NTH="0" | |
| else | 
  
    
      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
    
  
  
    
  | *int foo() { | |
| int bar = 42; | |
| return &bar; | |
| } | 
  
    
      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
    
  
  
    
  | #[derive(Debug,Eq,PartialEq)] | |
| struct Foo; | |
| fn main() { | |
| println!("{:?}", Foo); | |
| println!("{:?}", Foo == Foo); | |
| } | 
  
    
      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::cell::RefCell; | |
| thread_local!(static DIR: RefCell<String> = RefCell::new(String::new())); | |
| fn main() { | |
| DIR.with(|f| { | |
| f.borrow_mut().push_str("foobar"); | |
| }); | |
| DIR.with(|f| { | 
