The backend's code is now on Github, as are the specs.
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
$ ./durstlöscher.py search mate -f | |
searching for "mate" | |
0. 21507 Charitea Mate 20x0,33l 26,70 € | |
1. 21480 Flora Power Mate 20x0,5l 19,99 € | |
2. 21303 Club Mate Winter 20x0,5l 16,79 € | |
3. 21231 Club Mate Kraftstoff Ice Tea 20x0,5L 16,79 € | |
4. 21230 Flora Power Mate 24x0,33L 17,99 € | |
5. 21202 Club Mate Granatapfel 20x0,5L 16,79 € | |
6. 21150 Club-Mate Kola 20x0,33 15,99 € | |
7. 21103 Leet Mate 20x0,5L 19,99 € |
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
f2(%albumartist%,%artist%)/$if($ne(%albumartist%,),$if($ne(%date%,),$left(%date%,4)-)%album%/)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title% |
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
#!/usr/bin/env python2 | |
import paho.mqtt.client as mqtt | |
import time | |
import math | |
interval = 60 | |
mqttc = mqtt.Client() | |
mqttc.connect("mqtt.space.aachen.ccc.de") |
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/python3 | |
import json | |
import os | |
import tarfile | |
import urllib.request | |
import configparser | |
import easygui |
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
use std::any::Any; | |
use std::cmp::min; | |
use std::str; | |
use db::DbCon; | |
use db; | |
use rustc_serialize::json::{Json, Object, ToJson}; | |
use std::sync::{Arc, Mutex}; | |
use std::io::Read; | |
use model::{json_to_object, Action}; |
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
┌─(~/code/clubstatusd)───────────────────────────────────────────────────────────────────(clonejo@clonejo-thinkpad)─ | |
└──> ls target/debug/ -lh | |
total 12M | |
drwxr-xr-x 14 clonejo users 4.0K Jan 6 11:46 build | |
-rwxr-xr-x 1 clonejo users 12M Jan 10 02:44 clubstatusd | |
drwxr-xr-x 2 clonejo users 12K Jan 6 11:51 deps | |
drwxr-xr-x 2 clonejo users 4.0K Nov 12 19:33 examples | |
drwxr-xr-x 2 clonejo users 4.0K Nov 12 19:33 native | |
┌─(~/code/clubstatusd)───────────────────────────────────────────────────────────────────(clonejo@clonejo-thinkpad)─ | |
└──> cargo build --release |
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/python2 | |
import pygame | |
import itertools | |
import random | |
import math | |
# Initialize the game engine | |
pygame.init() | |
# Define some colors |
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
.stackexchange.com###hot-network-questions | |
stackoverflow.com###hot-network-questions | |
serverfault.com###hot-network-questions |
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
use std::rt::io::Reader; | |
use std::rt::io::mem::MemReader; | |
use std::rt::io::extensions::ReaderByteConversions; | |
fn read<T: Reader>(reader: &mut T) -> u8 { | |
reader.read_u8_() | |
} | |
fn main() { | |
let mut reader = ~MemReader::new(~[17u8, 1u8, 3u8]); |