TODO
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
{"type":"gephi-lite","version":"0.6.1","graphDataset":{"nodeRenderingData":{"0":{"label":"1","x":-218.8529052734375,"y":-137.57313537597656},"1":{"label":"2","x":-222.01121520996094,"y":-194.1942596435547},"2":{"label":"3","x":63.01418685913086,"y":-327.2149658203125},"3":{"label":"4","x":-47.67985916137695,"y":-421.4658203125},"4":{"label":"5","x":232.1230010986328,"y":-276.08306884765625},"5":{"label":"6","x":200.5511474609375,"y":-347.1112060546875},"6":{"label":"7","x":162.6657257080078,"y":-317.7107238769531},"7":{"label":"8","x":103.01333618164062,"y":-409.2578125},"8":{"label":"9","x":158.7241668701172,"y":-344.1167907714844},"9":{"label":"10","x":113.21092224121094,"y":-445.6382751464844},"10":{"label":"11","x":166.29388427734375,"y":-377.6233215332031},"11":{"label":"12","x":168.0863800048828,"y":-425.8984069824219},"12":{"label":"13","x":37.53132629394531,"y":-369.04742431640625},"13":{"label":"14","x":11.531533241271973,"y":-479.9667663574219},"14":{"label":"15","x":46.395591735839844,"y":-469.1419 |
This file has been truncated, but you can view the full file.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<gexf version="1.2" xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http:///www.gexf.net/1.1draft/viz"> | |
<meta> | |
<title>celegans.gexf</title> | |
</meta> | |
<graph defaultedgetype="undirected"> | |
<attributes class="node"> | |
<attribute id="meanAmbiguityScore" title="meanAmbiguityScore" type="double"/> | |
<attribute id="rawSize" title="rawSize" type="double"/> | |
</attributes> |
This file has been truncated, but you can view the full file.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<gexf version="1.2" xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http:///www.gexf.net/1.1draft/viz"> | |
<meta> | |
<title>graph.gexf</title> | |
<description>github.com/theophilec/foudinge</description> | |
</meta> | |
<graph defaultedgetype="undirected"> | |
<attributes class="node"> | |
<attribute id="type" title="type" type="string"/> | |
<attribute id="rawSize" title="rawSize" type="double"/> |
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 logImageData(imageData, size = 0) { | |
const canvas = document.createElement("canvas"); | |
canvas.width = size || imageData.width; | |
canvas.height = size || imageData.height; | |
const ctx = canvas.getContext("2d"); | |
if (!ctx) throw new Error("Could not get 2d context"); | |
ctx.putImageData(imageData, 0, 0); | |
const dataURL = canvas.toDataURL(); | |
console.log( |
This file has been truncated, but you can view the full file.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<gexf version="1.2" xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http:///www.gexf.net/1.1draft/viz"> | |
<meta/> | |
<graph defaultedgetype="directed"> | |
<attributes class="node"> | |
<attribute id="nodedef" title="nodedef" type="string"/> | |
<attribute id="occurrences" title="occurrences" type="integer"/> | |
<attribute id="rawSize" title="rawSize" type="string"/> | |
</attributes> | |
<attributes class="edge"> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<gexf version="1.2" xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http:///www.gexf.net/1.1draft/viz"> | |
<meta/> | |
<graph defaultedgetype="directed"> | |
<nodes/> | |
<edges/> | |
</graph> | |
</gexf> |
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
<html> | |
<head> | |
<title>Introduction au JavaScript</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
<div id="form"> | |
<input type="text" id="name-input" /> |
I met an issue with the common polyfill for Function.prototype.bind
, found on the MDN, and I do not know where to fix it.
Here is the polyfill:
if (!Function.prototype.bind) {
Function.prototype.bind = function(oThis) {
if (typeof this !== 'function') {
// closest thing possible to the ECMAScript 5
// internal IsCallable function
throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
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
/** | |
* Here are the kind of cases I like to use Array.prototype.reduce to deal | |
* with: | |
*/ | |
/** | |
* We have an array of users sorted by name. The "reduce" method can be really | |
* useful here: | |
*/ | |
var users = [ |
NewerOlder