Skip to content

Instantly share code, notes, and snippets.

View kantale's full-sized avatar

Alexandros Kanterakis kantale

View GitHub Profile
@kantale
kantale / docker.md
Created October 11, 2018 13:45
Docker

Install docker

sudo apt install docker.io

Create Dockerfile

Example:

FROM ubuntu:16.04
@kantale
kantale / project_implementation_2018.ipynb
Created April 11, 2018 10:37
Υλοποίηση του project για το μάθημα "Εισαγωγή στον προγραμματισμό με τη γλώσσα python" 2017-2018
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / TEI_2.ipynb
Created March 31, 2018 11:04
Άσκηση
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / TEI_1.ipynb
Last active March 30, 2018 14:53
Οδηγίες για τη 1η άσκηση
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / lesson_13.ipynb
Last active December 6, 2018 12:25
Εισαγωγή στον προγραμματισμό με τη γλώσσα python 2017-2018, διάλεξη 13η
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def gexf(nodes, edges, output_fn, nodes_meta=[], edges_meta=[]):
'''
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version="1.2">
<meta lastmodifieddate="2009-03-20">
<creator>Gexf.net</creator>
<description>A hello world! file</description>
</meta>
<graph mode="static" defaultedgetype="directed">
<attributes class="node">
@kantale
kantale / cytoscape.py
Last active March 20, 2018 17:11
cytoscape
def cytoscape_nodes(nodes):
ret = []
for n in nodes:
ret.append("{ data: { id: '%s', name: '%s' } }" % (n['id'], n['name']))
print ('NODES: {}'.format(len(ret)))
return ',\n'.join(ret) + '\n'
def cytoscape_edges(edges, remove_duplicate_edges = False):
@kantale
kantale / lesson_12.ipynb
Created January 27, 2018 13:38
Εισαγωγή στον προγραμματισμό με τη γλώσσα python 2017-2018, διάλεξη 12η
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / lesson_11.ipynb
Last active January 19, 2019 14:47
Εισαγωγή στον προγραμματισμό με τη γλώσσα python 2017-2018, διάλεξη 11η
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / lesson_10.ipynb
Last active December 20, 2018 20:33
Εισαγωγή στον προγραμματισμό με τη γλώσσα python 2017-2018, διάλεξη 10η
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.