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>();
}
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">
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);
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(){
View gist:e369f874a7dd3ede76a4
[12:40:57] *** joerg is now Offline
*** 2015-12-10
[12:40:46] <joerg> ACTION=="add", SUBSYSTEM=="block", ENV{ID_PART_TABLE_UUID}=="819fbbd8-9b21-4cd6-aa7e-9c81cae2e37c", TAG+="systemd", ENV{SYSTEMD_WANTS}="backup.service"
[12:40:57] *** Contact has been switched: joerg@higgsboson.tk/turingmachine
[12:40:57] *** joerg is now Online [50]
[12:41:05] *** Unverified conversation started
[12:41:20] <joerg> /etc/udev/rules.d/99-backup.rules
View README.md

Servo Logo proposal

I had this idea a minute ago, the rustacean logo "Ferris the Crab" has about the same colors as the firefox-fox. So why not integrate it into the firefox logo to make a Rustish/Firefoxish servo logo.

What do you think?

View setup_libavg.md

How to build libavg

tested on archlinux

# setup a special virtenv for python, e.g. here:
sudo mkdir /var/opt/virtenv/libavg
virtualenv -p /usr/bin/python2 /var/opt/virtenv/libavg --system-site-packages

# hopefully your virtualenv version is later than this https://github.com/pypa/virtualenv/pull/798