Skip to content

Instantly share code, notes, and snippets.

View aleifer's full-sized avatar

Andrew Leifer aleifer

View GitHub Profile
@aleifer
aleifer / neumann_diffusion.m
Last active December 28, 2015 22:58
Thinking about pouring plates to make linear chemical gradients
% Motivation: http://www.wormbook.org/wbg/articles/volume-18-number-3/making-linear-chemical-gradients-in-agar/
%
% Question: how many days before can we get away with?
%
%Fick's equation is
%
% dc/dt =D d^2 C/ dx^2 where the d's are partials
%
% Since the petri dish is a solid boundary, we have neumann boundary conditions
%
@aleifer
aleifer / getGitInfo.m
Created September 12, 2011 16:16
MATLAB getGitInfo: Get git repository hash, branch, and remote url in MATLAB
function gitInfo=getGitInfo()
% Matlab script to get information about the Git repository in the current directory, including:
% - branch name of the current Git Repo
% -Git SHA1 HASH of the most recent commit
% -url of corresponding remote repository, if one exists
%
% The function first checks to see if a .git/ directory is present. If so it
% reads the .git/HEAD file to identify the branch name and then it looks up
% the corresponding commit.
%
@aleifer
aleifer / README.txt
Created July 26, 2011 18:40
Setting Up MindControl Development Environment
Install Msys Git
Install most recent version of MinGW
During the installer, click to install:
C++ compiler
MSYS basic suite
Install Notepad++ (barebones IDE)
Install OpenCV 1.1
http://sourceforge.net/projects/opencvlibrary/files/opencv-win/1.1pre1/OpenCV_1.1pre1a.exe/download
@aleifer
aleifer / Questions
Created June 24, 2011 06:26
Kiwi Pycon Give-away
GitHub username:
Day job:
Favorite open source project:
Open Source contributions (if any):
Stranded on an island, what 3 items do you take:
Tie-breaker, pick a number between 1 and 20,000:
var s = 1;
var k = 2;