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/env python | |
# -*- coding:utf-8 -*- | |
""" | |
Example app using bottle and multiprocessing for queuing long jobs | |
and using several workers. | |
""" | |
from multiprocessing import Process, Queue, cpu_count | |
from bottle import Bottle, run |
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
# Ici on mettra tout ce qui définit un eep. | |
# Ce dictionnaire est censé être figé, | |
# tant que de nouveaux modèles de capteurs de sortent pas. | |
eep_to_info = { | |
'07-02-01': { | |
"eep": "07-02-01", | |
"name": "Capteur de température (A)", | |
"description": "Capteur de température, modèle A", | |
"datatypes": ["temperature", None, None, None, None, None] | |
}, |
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
################# | |
file_words = set(extractIdentifiers(file)) | |
bestIndex = -1 | |
bestScore = 0 | |
bestWords = [] | |
i = -1 | |
for link in links: | |
i=i+1 |
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
function [ res, keeped ] = deldominated( mat ) | |
[h,w] = size(mat); | |
res = []; % lignes non dominees (matrice) | |
keeped = []; % liste des indices des lignes non dominees. | |
for i=1:h, | |
vi = mat(i,:); | |
dominee = 0; | |
for j=1:h, | |
if i ~= j, | |
vj = mat(j,:); |
NewerOlder