Skip to content

Instantly share code, notes, and snippets.

View timkaechele's full-sized avatar

Tim Kächele timkaechele

View GitHub Profile
@timkaechele
timkaechele / Sublime Text Configuration.json
Created October 30, 2020 12:12
My Sublime Text Configuration
{
"caret_extra_width": 1,
"color_scheme": "Packages/ayu/ayu-mirage.sublime-color-scheme",
"ensure_newline_at_eof_on_save": true,
"font_face": "Cascadia Code",
"font_options":
[
"dlig",
"no_italic",
"no_bold"
typedef char* string;
#define class struct;
// Definition of Datastructures
// stars (*) indicate a reference to another data structure
// Think of it as a `belongs_to` relation.
//
// Every object has an id as well as a updated and created timestamp

Hilfsblatt Probeklausur 2013/2014

Bildung der komplementären Sprache L' anhand des DEA der Ausgangssprache L

L und L' (L' = komplementäre Sprache zu L)

  1. DEA, der die Sprache L akzeptiert bilden.
  2. DEA zu totalem DEA umwandeln.
  3. Komplementären DEA L' bilden, wie folgt:

Pflichtprogrammieraufgabe

TicTacToe UML

Model

Das Model beinhaltet die gesamte Logik. Das Model verwaltet das TicTacToe Spiel, weiß wer gerade an der Reihe ist, wie das Spielfeld aussieht, wer gewinnt und was ein korrekter Spielzug ist.

public class Person {
/*
* Es ist in Java Konvetion alle Objektvariablen als "private" zu deklarieren,
* das hat den Vorteil, dass ein Benutzer der Klasse nicht einfach eine
* möglicherweiße fehlerhafte Variable setzt, beispielsweiße -1 für das Alter
* der Person
*/
private Person ehepartner;
private String vorname;
private String nachname;
@timkaechele
timkaechele / Isbn.java
Created November 9, 2014 10:05
Math Exercise 4 Task 5a Java Version
/**
* ISBN Class
* Represents an ISBN can check its correctness and
* complete an partial ISBN
* @author Tim Kächele
* @copyright Copyright (c) 2014 Tim Kächele
* @license MIT License
*/
import java.util.ArrayList;
@timkaechele
timkaechele / WhatsappMessage.rb
Created September 12, 2014 15:49
WhatsApp Export Parser
require 'time'
class WhatsappMessage
def initialize line
@matches = /(\d{2}.\d{2}.\d{2} \d{2}:\d{2}:\d{2}): (.+?): (.+{1,})/.match(line)
end
def date
Time.strptime(@matches[1], "%d.%m.%y %H:%M:%S")