Skip to content

Instantly share code, notes, and snippets.

View zdxerr's full-sized avatar

Christoph Schniedermeier zdxerr

  • dSPACE GmbH
  • Paderborn, Germany
  • 15:41 (UTC +02:00)
View GitHub Profile
# -*- coding: utf-8 -*-
"""
Created on Sun May 2 12:01:41 2021
@author: Haya Halimeh
"""
import json
import scrapy
from scrapy.selector import Selector
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <mpi.h>
#include <string.h>
const int N = 50;
// const int SIZE = 32;
const int SIZE = 32000000;
const char charset[] = "abcdefghijklmnopqrstuvwxyzABC";
import json
import numpy as np
from matplotlib import pyplot as plt
with open("/home/christoph/Uni/Computational Argumentation/Assignment 1/demo/first_project/data.json") as json_file:
data = json.load(json_file)
print(data)
@zdxerr
zdxerr / topologies.json
Created June 7, 2020 18:37
New topology format idea.
{
"DefaultRTPC|CAN|2|2|2": [
[
{
"channel": "Bla/Bla*/Channel1",
"properties": {
"Termination": "On",
}
},
{
@zdxerr
zdxerr / task_factory.py
Created June 7, 2020 10:39
Use factory method to create objects based on description (str/dict).
"""
"""
from abc import ABC, abstractmethod
from functools import lru_cache
from collections.abc import Set, Mapping
class Task(ABC):
def __init__(self, context):
self.context = context
@zdxerr
zdxerr / server.py
Created June 1, 2020 17:11
Python ThreadingHTTPServer Example
from http.server import ThreadingHTTPServer, SimpleHTTPRequestHandler
def run(server_class=ThreadingHTTPServer, handler_class=SimpleHTTPRequestHandler):
server_address = ('', 80)
httpd = server_class(server_address, handler_class)
httpd.serve_forever()
if __name__ == "__main__":
@zdxerr
zdxerr / schedule.py
Last active March 8, 2020 19:11
Cron Job Scheduler Syntax Parser
"""
"""
import calendar
import locale
import yaml
import nltk
import re
import datetime
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
@zdxerr
zdxerr / log2014-12-08.md
Last active August 29, 2015 14:11
Workout Log

Monday (2014-12-08)

Warmup

Row 2500m @ 9:14 (level 9)

Power

3 rounds of

  • Wall Sprints
@zdxerr
zdxerr / 00_About.md
Last active August 29, 2015 14:05
Heuristic Search Lecture Notes
@zdxerr
zdxerr / moneymaker.json
Last active August 29, 2015 14:02
Stock analysis tool.
{
"Accounts": {
"Comdirect Tagesgeld": {
"Actions": [
{
"Action": "payment",
"Date": "2014-06-10",
"Quantity": 1.0,
"Value": 2289.12
}