Skip to content

Instantly share code, notes, and snippets.

View RCura's full-sized avatar

Robin Cura RCura

View GitHub Profile
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<html>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
var gAxesTable = null ;
var gMembersTable = null ;
google.load("visualization", "1");
// Set callback to run when API is loaded
linksTable = new Array
(
{'from': 12, 'to': 4},
{'from': 11, 'to': 9},
{'from': 11, 'to': 22},
{'from': 9, 'to': 22},
{'from': 23, 'to': 1},
{'from': 16, 'to': 19},
{'from': 16, 'to': 28},
{'from': 16, 'to': 34},
@RCura
RCura / gist:1717699
Created February 1, 2012 15:59
script de correction des tableaux
import csv
import os
print "debut"
for nbReseau in range(8):
for nbSimulation in range(10):
print "reseau " + str(nbReseau + 1) + " / Simulation : " + str(nbSimulation + 1)
inFilePath = "/home/administrateur/experiences/reseau_" + str(nbReseau + 1) + "-exp_" + str(nbSimulation + 1) + "_links-traffic.csv"
inFile = open(inFilePath)
inCsv = csv.reader(inFile)