-
Q: Die Bürger von Essos grüßen einander mit den bekannten Worten "Valar Morghulis" ("Alle Menschen müssen sterben"). Wie wird dieser Gruß erwidert? <
A: "Valar Dohaeris"
-
Q: Was heißt die Antwort übersetzt?
this build and rebuilds a rust project with rustc 1.23 and 1.24
./build_times.sh > buildtime.log 2>&1
rg secs buildtime.log
105: Finished dev [unoptimized + debuginfo] target(s) in 59.57 secs
113: Finished dev [unoptimized + debuginfo] target(s) in 15.35 secs
216: Finished release [optimized] target(s) in 197.70 secs
224: Finished release [optimized] target(s) in 111.56 secs
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
// optional.cpp | |
#include <experimental/optional> | |
#include <iostream> | |
#include <vector> | |
std::experimental::optional<int> getFirst(const std::vector<int>& vec){ | |
if (!vec.empty()) return std::experimental::optional<int>(vec[0]); | |
else return std::experimental::optional<int>(); | |
} |
Getting a few Ideas out of my head, here's just the subset that I can recall momentarily
- afl-rs -> yaml_rust
- ical parser/emitter using nom
- finish
Yaml::ToString()
(PR)
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 | |
BIN_NAME=asciii | |
unset RUSTFLAGS | |
cargo clean | |
cargo build --release && cp target/release/$BIN_NAME $BIN_NAME_release_build_no_mir | |
unset RUSTFLAGS | |
cargo clean |
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
<!-- | |
This document intends to include all stops used by the DVB as of December 2015. | |
It was created by manually combining multiple DVB documents and improved by using a reverse engineered autocompletion API. | |
It is preformatted as PropertyList and can easily be handled as XML. | |
Consider this document as public domain, mentioning my name in your project would make me happy though. | |
Created by Richard Neitzke. | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
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() { | |
let a = [1,2,3,4,5,6,7,8,9,0]; | |
let b = "hello world!"; | |
let slice_a = &a[6..]; // [7,8,9,0] | |
let slice_b = &b[6..11]; // "world" | |
let slice_c = &slice_b[..2]; // "wo" | |
println!("{:?}", a); println!("{:?}", slice_a); |
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)] | |
struct Pair(i32,i32); | |
fn eat(y:&mut Pair) { y.0 = 1; y.1 = 2} | |
//fn replace(y:&mut Pair) { y = Pair(1,2)} // no? why not? | |
fn replace(y:&mut Pair) { let Pair(x,z) = Pair(1,2); y.0 = x; y.1 = z} | |
fn main(){ | |
NewerOlder