This file contains hidden or 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
{ | |
"metadata": { | |
"creator": "thomas.cabrol", | |
"language": "python", | |
"name": "", | |
"signature": "sha256:eb16b351da0bd35334748f47c863859f43a00e5da5ba42d16e718d3d247a4d59" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ |
This file contains hidden or 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(venn) { | |
"use strict"; | |
/** given a list of set objects, and their corresponding overlaps. | |
updates the (x, y, radius) attribute on each set such that their positions | |
roughly correspond to the desired overlaps */ | |
venn.venn = function(sets, overlaps, parameters) { | |
parameters = parameters || {}; | |
parameters.maxIterations = parameters.maxIterations || 500; | |
var lossFunction = parameters.lossFunction || venn.lossFunction; | |
var initialLayout = parameters.layoutFunction || venn.greedyLayout; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
# encoding: utf-8 | |
""" | |
linkedin-3-cleaner.py | |
Created by Thomas Cabrol on 2012-12-04. | |
Copyright (c) 2012 dataiku. All rights reserved. | |
Clean up and dedup the LinkedIn graph | |
""" |
This file contains hidden or 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 | |
# encoding: utf-8 | |
""" | |
linkedin-2-query.py | |
Created by Thomas Cabrol on 2012-12-03. | |
Copyright (c) 2012 dataiku. All rights reserved. | |
Building the LinkedIn Graph | |
""" |
This file contains hidden or 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 | |
# encoding: utf-8 | |
""" | |
linkedin-1-oauth.py | |
Created by Thomas Cabrol on 2012-12-03. | |
Copyright (c) 2012 dataiku. All rights reserved. | |
Doing the oauth dance to get your LinkedIn token | |
This is taken from : |