Skip to content

Instantly share code, notes, and snippets.

@Nemo157
Nemo157 / playground.rs
Created October 11, 2018 17:49 — forked from rust-play/playground.rs
`iter` blocks
#![feature(arbitrary_self_types, generators, generator_trait, pin)]
use std::{
marker::Unpin,
ops::{DerefMut, Deref, Generator, GeneratorState},
pin::Pin,
};
trait PinIterator {
type Item;
[package]
name = "leaf-examples"
description = "Examples for the Machine Learning Framework 'Leaf'"
version = "0.1.0"
authors = ["Michael Hirn <mj@autumnai.com>",
"Maximilian Goisser <max@autumnai.com>"]
[dependencies]
csv = "0.14"
# cuticula = "0.1.4"

Making an office dashboard with a Raspberry Pi

Start with a basic Raspbian install.

Rationale

  • chromium – a browser, that will be run in a full-screen “kiosk” mode
  • matchbox – a lightweight, single-window X environment for the browser to run in (starting a full desktop environment would be wasteful)
  • x11-xserver-utils – tools to allow configuring the X environment to, for instance, prevent the screen from blanking after several minutes
  • unclutter – hide the mouse