Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1b
- Decimal:
27
use std::fs::File; | |
use std::path::Path; | |
/// opens a file from the resources folder | |
/// takes an `AsRef<Path>` for convenience. with this, a `&str` can be used | |
fn get_resource(path: impl AsRef<Path>) -> Option<File> { | |
let mut path_buf = std::env::current_exe().ok()?.parent()?.to_path_buf(); | |
path_buf.push("resources"); | |
path_buf.push(path); | |
File::open(path_buf).ok() |
def
keyword is named inconsistently since "def" does in no way says that a function is being definedpackage de.mzte.test; | |
public class InstrClass { | |
public static void sayHello() { | |
System.out.println("Hello!"); | |
} | |
} |