Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Hendrik Sollich hoodie

🎯
Focusing
View GitHub Profile
@hoodie
hoodie / kneipenquiz.md
Last active May 11, 2019
hendriks fragen und antworten
View kneipenquiz.md

Kneipenquiz

Game Of Thrones

  1. 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"

  2. Q: Was heißt die Antwort übersetzt?

View podcast-template.md

Akronymisierbar

Progress

  • termin
  • aufgenommen
  • geschnitten
  • hochgeladen

Gäste

@hoodie
hoodie / 1.23vs1.24buildtimes.md
Last active Feb 15, 2018
comparing rustc 1.23 and 1.24 buildtimes building asciii
View 1.23vs1.24buildtimes.md

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
View optional.cpp
// 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>();
}
@hoodie
hoodie / Rust_TODO.md
Last active Jun 26, 2016
Ideas for things I need to hack
View Rust_TODO.md

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)
View mir_size_compare.sh
#!/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
View startupo.md

Internet Compnies with O

A list of germany web companies that end in "O"

Von Ayondo bis Zalando, warum heißen die alle so seltsam?

  • Amerano
  • Avino
  • Ayondo
  • Kinderando
  • Kredito
View DVBStops.plist
<!--
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">
@hoodie
hoodie / playground.rs
Created Mar 9, 2016 — forked from anonymous/playground.rs
Shared via Rust Playground
View playground.rs
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);
@hoodie
hoodie / playground.rs
Created Jan 31, 2016 — forked from anonymous/playground.rs
Shared via Rust Playground
View playground.rs
#[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(){