Skip to content

Instantly share code, notes, and snippets.

View gcalmettes's full-sized avatar

Guillaume Calmettes gcalmettes

View GitHub Profile
@gcalmettes
gcalmettes / cell.py
Created September 21, 2012 20:52 — forked from stefanv/cell.py
Cell detection
from skimage import io, filter, morphology, segmentation, measure, img_as_float
import os
# Download the image
if not os.path.exists('cell.png'):
print "Downloading snowflakes image..."
import urllib2
u = urllib2.urlopen('http://people.sc.fsu.edu/~jburkardt/data/tif/cell.png')
@gcalmettes
gcalmettes / game_of_life.ipynb
Created September 24, 2012 21:38 — forked from jiffyclub/game_of_life.ipynb
Conway's Game of Life in an IPython Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gcalmettes
gcalmettes / gist:6802424
Last active December 24, 2015 13:09
HHURP analysis
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@gcalmettes
gcalmettes / README.md
Created July 5, 2017 21:25 — forked from susielu/README.md
Annual Temp - New York 2015

Weather Plot - New York 2015

In the example we're looking at historical weather data for New York provided by intellicast.com and wunderground.com. Inspired by weather-radicals.com.

This example uses scales to roll your own radial projection by mapping out the x, y, and r positions. If you are creating a line or an area you can use d3's convenience functions d3.svg.line.radial and d3.svg.area.radial but this is a method you can use if you want to use different graphical elements in a circular layout.

@gcalmettes
gcalmettes / .block
Last active August 20, 2017 17:57
Beating heart chord diagram
license: gpl-3.0
@gcalmettes
gcalmettes / .block
Last active August 20, 2017 17:58
D3.unconf() badge
license: gpl-3.0
@gcalmettes
gcalmettes / README.md
Last active August 20, 2017 17:59
D3.unconf() badge - moving text

Based on D3.unconf() 2017 badge, added moving text


Experimenting transitions with the chord diagram layout to show blood flow between the four chambers of the heart during a contraction cycle.

The heart consists of four chambers in which blood flows. Deoxygenated blood (blue color) enters the right atrium and passes through the right ventricle. The right ventricle pumps the blood to the lungs where it becomes oxygenated (red color). The oxygenated blood is brought back to the heart by the pulmonary veins which enter the left atrium. From the left atrium blood flows into the left ventricle. The left ventricle pumps the blood to the aorta which will distribute the oxygenated blood to all parts of the body and become deoxygenated again.

Notes:

@gcalmettes
gcalmettes / .block
Last active September 28, 2017 01:48
The crooked star show
license: gpl-3.0
@gcalmettes
gcalmettes / .block
Last active September 28, 2017 01:48
Let's draw a star
license: gpl-3.0
@gcalmettes
gcalmettes / .block
Last active September 30, 2017 17:46
Rainbow Lorenz
license: gpl-3.0