Skip to content

Instantly share code, notes, and snippets.

View edipetres's full-sized avatar

Edmond Petres edipetres

View GitHub Profile

Keybase proof

I hereby claim:

  • I am edipetres on github.
  • I am edmond_petres (https://keybase.io/edmond_petres) on keybase.
  • I have a public key ASCvAWB72hQzlZzHWD61GiGt7SZxqGiH56sHSpL0pn_qygo

To claim this, I am signing this object:

@edipetres
edipetres / db.pl
Created September 13, 2018 09:53
Assignment 2 - Emil Klausen, Edmond Petres, Zygimantas Pranka
father_of(joe,paul).
father_of(joe,mary).
father_of(joe,hope).
mother_of(jane,paul).
mother_of(jane,mary).
mother_of(jane,hope).
male(paul).
male(joe).
male(ralph).
@edipetres
edipetres / gps_logger.py
Created May 2, 2018 15:30
gps data logging from py
#! /usr/bin/python
# Written by Dan Mandle http://dan.mandle.me September 2012
# License: GPL 2.0
import os
from gps import *
from time import *
import time
import threading
@edipetres
edipetres / gps_logger.py
Created May 2, 2018 15:30
gps data logging from py
#! /usr/bin/python
# Written by Dan Mandle http://dan.mandle.me September 2012
# License: GPL 2.0
import os
from gps import *
from time import *
import time
import threading
@edipetres
edipetres / gps_logger.py
Created May 2, 2018 15:30
gps data logging from py
#! /usr/bin/python
# Written by Dan Mandle http://dan.mandle.me September 2012
# License: GPL 2.0
import os
from gps import *
from time import *
import time
import threading
@edipetres
edipetres / decision_tree.py
Created March 27, 2018 15:18
Algorithms Compulsory Assignment 2 - trees
RESP_GOOD = 'You should be able to pass the exam.'
RESP_BAD = 'You could easily fail the exam.'
def decision_tree():
hand_ins_made_on_time = get_answer("Hand-ins made on time?")
if hand_ins_made_on_time == True:
attend_lectures = get_answer('Attended lectures?')
make_exercise = get_answer('Did you make the exercises?')
read_textbook = get_answer('Did you read the textbook?')
@edipetres
edipetres / decision_tree.py
Created March 27, 2018 15:18
Algorithms Compulsory Assignment 2 - trees
RESP_GOOD = 'You should be able to pass the exam.'
RESP_BAD = 'You could easily fail the exam.'
def decision_tree():
hand_ins_made_on_time = get_answer("Hand-ins made on time?")
if hand_ins_made_on_time == True:
attend_lectures = get_answer('Attended lectures?')
make_exercise = get_answer('Did you make the exercises?')
read_textbook = get_answer('Did you read the textbook?')
@edipetres
edipetres / Handler.java
Created March 5, 2018 13:09
Testing-course: JUnit exercise with Ronnie part 1
package impl;
import java.io.IOException;
public interface Handler {
/**
* Read a file
* @param filename The name of the file to read
* @return The contents of the file as string
@edipetres
edipetres / MyArrayListWithBugs.java
Last active February 24, 2018 15:02
Test Cases Exercise
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package myarraylistwithbugs;
/**
*
* @author eddmond