Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# -*- coding: utf-8 -*-
from email.parser import Parser
import os, re, csv, argparse, sys
class EMailBounce(object):
def __init__(self, filename):
self.Delivery_status = {}
self.Recipient = ''
@christophlsa
christophlsa / fetchmdr.py
Last active May 25, 2018 06:42
Ausführbefehl und encoding
#!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib.request, re, argparse, math, sys
import xml.etree.ElementTree as ET
from operator import itemgetter
parser = argparse.ArgumentParser(description='Extrahiert die URLs der Dateien eines Videos aus der MDR Mediathek')
parser.add_argument('urls', help='Eine Liste von URLs zu den Videos in der MDR Mediathek', nargs='+')
parser.add_argument('-d', '--download', action='store_true', help='größtes Video herunterladen')
@christophlsa
christophlsa / gebietsversammlung.txt
Created July 10, 2012 23:27
Gebietsversammlungen wie ich es mag
§ 9 - Organe des Landesverbands
(1) Organe sind der Vorstand, der Landesparteitag, das Landesschiedsgericht, die Gebietsversammlung, die Aufstellungsversammlung und die Gründungsversammlung.
(...)
§ 9c - Gebietsversammlung
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/caleb531/jcanvas/master/jcanvas.js"></script>
<script type="text/javascript">
function draw () {
var obj = {
layer: true,
fillStyle: '#00FF00',
@christophlsa
christophlsa / webserver.c
Created November 16, 2011 20:42
homework for the study
/* webserver.c */
#include <cnaiapi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <fcntl.h>