This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* parse_commands_http.cpp | |
* This file is part of parse_commands_http | |
* | |
* Copyright (C) 2013 - Giacomo Bergami | |
* | |
* parse_commands_http is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Vertex.cpp | |
* This file is part of socialsim | |
* | |
* Copyright (C) 2014 - Giacomo Bergami | |
* | |
* socialsim is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Giacomo Bergami (c) 2014 | |
# This gists is licensed under GPL-2 | GPL-3 | |
library(hyperdraw) | |
library(hypergraph) | |
#vertices <- c("id1","id2","id3","id4","tom","sam","pos1","pos2","helloworld","ciaomondo","hashtag","geotag1","geotag2") | |
#dh1 <- DirectedHyperedge(c("tom","pos1"),c("id1"),"User<:ED") | |
#dh2 <- DirectedHyperedge(c("sam","pos2"),c("id2"),"User<:ED") | |
#h <- Hypergraph(vertices,list(dh1,dh2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* iteratortest.cpp | |
* This file is part of iteratortest.cpp | |
* | |
* Copyright (C) 2014 - Giacomo Bergami | |
* | |
* iteratortest.cpp is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* daemon.c | |
* This file is part of aviva2014 | |
* | |
* Copyright (C) 2014 - Giacomo Bergami | |
* | |
* aviva2014 is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Repository-MonoView.cpp | |
* This file is part of <program name> | |
* | |
* Copyright (C) 2014 - Giacomo Bergami | |
* | |
* <program name> is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Dénes Kőnig matching.cpp | |
* This file is part of Dénes Kőnig matching | |
* | |
* Copyright (C) 2014 - Giacomo Bergami | |
* | |
* Dénes Kőnig matching is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data Tree = Leaf | Node Int Tree Tree deriving Show | |
leftmost Leaf x = x | |
leftmost (Node x Leaf _) _ = x | |
leftmost (Node v (Node x y z) _) _ = leftmost (Node x y z) v | |
rightmost Leaf x = x | |
rightmost (Node x _ Leaf) _ = x | |
rightmost (Node v _ (Node x y z)) _ = rightmost (Node x y z) v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"art": "der", | |
"de": "Apfel", | |
"errors": 0, | |
"first": 0, | |
"it": "la mela" | |
}, | |
{ | |
"art": "die", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import unicodedata | |
import codecs | |
import re | |
from subprocess import call | |
import os.path | |
import string | |
import sys |
OlderNewer