Skip to content

Instantly share code, notes, and snippets.

@ThomasCabrol
ThomasCabrol / gist:9ff7fb6a86cbdf3028a4
Created April 23, 2015 22:49
Exponential Smoothing with Pandas
{
"metadata": {
"creator": "thomas.cabrol",
"language": "python",
"name": "",
"signature": "sha256:eb16b351da0bd35334748f47c863859f43a00e5da5ba42d16e718d3d247a4d59"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
@ThomasCabrol
ThomasCabrol / venn.js
Created August 23, 2013 15:25
Venn.js from Ben Frederickson
(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;
@ThomasCabrol
ThomasCabrol / RMagic.ipynb
Last active January 17, 2016 13:21
Playing with the rmagic extension in the iPython Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ThomasCabrol
ThomasCabrol / linkedin-3-cleaner.py
Created December 7, 2012 11:42
Clean up LinkedIn data
#!/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
"""
@ThomasCabrol
ThomasCabrol / linkedin-2-query.py
Created December 7, 2012 11:31
LinkedIn Graph
#!/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
"""
@ThomasCabrol
ThomasCabrol / linkedin-1-oauth.py
Created December 7, 2012 11:28
LinkedIn oauth dance
#!/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 :