diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3c6a7b4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,10 @@ +kind: pipeline +type: docker +name: run_algo + +steps: + - name: do_homework + image: "python:3.8" + commands: + - pip3 install -r requirements.txt + - python3 app.py \ No newline at end of file diff --git a/.gitignore b/.gitignore index 13d1490..927f0b2 100644 --- a/.gitignore +++ b/.gitignore @@ -128,4 +128,4 @@ dmypy.json # Pyre type checker .pyre/ - +.idea/ diff --git a/README.md b/README.md index 8170b06..7222e31 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # mfe_network_coding_b +[![Build Status](https://drone.kmlabz.com/api/badges/tormakris/mfe_network_coding_b/status.svg)](https://drone.kmlabz.com/tormakris/mfe_network_coding_b) \ No newline at end of file diff --git a/Y8O353.txt b/Y8O353.txt new file mode 100644 index 0000000..0e92b38 --- /dev/null +++ b/Y8O353.txt @@ -0,0 +1,10 @@ +46 34 102 +46 47 58 +126 64 59 +44 5 105 +90 57 95 +111 17 72 50 107 111 +3 72 10 82 5 91 +123 86 35 109 54 111 +28 101 38 35 47 93 +86 6 70 97 0 17 \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..1005de7 --- /dev/null +++ b/app.py @@ -0,0 +1,8 @@ +#!/usr/bin/env python3 + +import numpy +import scipy + +headers = [[46, 34, 102], [46, 47, 58], [126, 64, 59], [44, 5, 105], [90.57, 95]] +messages = [[111, 17, 72, 50, 107, 111], [3, 72, 10, 82, 5, 91], [123, 86, 35, 109, 54, 111], [28, 101, 38, 35, 47.93], + [86, 6, 70, 97, 0, 17]] diff --git a/network_coding.py b/network_coding.py new file mode 100644 index 0000000..e69de29 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5576e19 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +numpy +scipy \ No newline at end of file