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 std::{ | |
collections::hash_map::DefaultHasher, | |
hash::{Hash, Hasher}, | |
}; | |
fn main() { | |
let data = ["Billy", "Tom"]; | |
let strings: Vec<String> = data.iter() | |
.map(|str| String::from(*str)) | |
.collect(); |
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
package util; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
public class HiraganaHelper { |
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
import java.awt.Canvas; | |
import java.awt.Color; | |
import java.awt.Graphics; | |
public class CollatzSheet extends Canvas { | |
private static final long serialVersionUID = -7304438045996947968L; | |
//current number whose sequence is being drawn | |
private long num; |
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 std::{ | |
fs::{self, DirEntry, File}, | |
io::{prelude::*, Error, Result}, | |
process::Command | |
}; | |
//Default temp file name | |
const FILE_NAME: &'static str = "source.rs"; | |
fn main() -> Result<()> { |