Skip to content

Instantly share code, notes, and snippets.

View Carreau's full-sized avatar
:octocat:

M Bussonnier Carreau

:octocat:
View GitHub Profile
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/ptpython/ipython.py in raw_input(sel)
196 print('')
197 try:
--> 198 string = self._cli.run().text
199 acs 2/2 [F6] Paste mode (off) [F2] Options - CPython 3.4.3
200 # In case of multiline input, make sure to append a newline to the input,
/Users/bussonniermatthias/anaconda3/lib/python3.4/site-packages/prompt_toolkit/interface.py in run(s)
272 self._redraw()
273
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# Internal variables.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Actin Threadmilling

This is a proof of concept of a live simlation of actin threadmilling using Mike Bostock D3 javascript library.

Dark monomers (and left pool)a re ADP actin, light monomer (and right pool) are APT actin. Middle pool should be ATP + profiline, that for now only participate on the regeneration of ATD into ATP.

The simulation is quite fast, but one should still be able to see rare addition of monomer to the pointed end, and monomer detaching from the pointed end.

@Carreau
Carreau / name.js
Created April 19, 2014 19:34
a test js extension
define(["require"], function(require) {
"use strict";
// first param reference to a DOM div
// second param reference to the cell.
/**
* Build a list of already existing names, except on given cell
*/
@Carreau
Carreau / maketheme.js
Created April 19, 2014 20:04
To build IPython Notebook themes. `node maketheme.js <variable.less> <output file>`
#!/usr/env node
var less = require('less')
var fs = require('fs');
var parser = new(less.Parser)({
paths : ['.','IPython/html/static/style/'],
filename: 'ipython.less'
});
var otherimp = process.argv[2];
@Carreau
Carreau / dmask.pyx
Created April 25, 2014 13:03
Some cython model for my research
import cython
import numpy
#cimport numpy
cimport cython
from libc.math cimport exp, sqrt
from cython.view cimport array as cvarray
@cython.cdivision(True)
cdef inline double dgauss(double radius, double x, double spread):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/examples/Notebook/Notebook Basics.ipynb b/examples/Notebook/Notebook Basics.ipynb
index 958316f..4024524 100644
--- a/examples/Notebook/Notebook Basics.ipynb
+++ b/examples/Notebook/Notebook Basics.ipynb
@@ -1,7 +1,16 @@
{
"metadata": {
{+"kernelspec": {+}
{+ "codemirror_mode": {+}
{+ "name": "ipython",+}