Skip to content

Instantly share code, notes, and snippets.

@markusbaden
markusbaden / gist:1614838
Created January 15, 2012 07:19
Hearbet interlock for Arduino
// Constant Variables
// Pin receiving the signal that experiment is still running
const byte heartPin = 2;
// Pin controlling the analog interlock
const byte cmdPin = 3;
// Time interval the interlock will stay
// active after having received the heartbeat
// 10 min = 600000 ms
@markusbaden
markusbaden / estimating_error_from_fit.py
Created June 1, 2012 03:24
When to scale covariance by reduced chi square for error estimation
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import leastsq
x_values = np.array([-1.12163752, -1.01270045, -0.90458398, -0.79520288, -0.68504665,
0.51738399, 0.62679271, 0.73598531, 0.84455173, 0.95383917,
-1.12527093, -1.01615466, -0.90649584, -0.79919983, -0.68616358,
0.51407783, 0.62394869, 0.73268909, 0.84366404, 0.9526824])
x_errors = np.array([ 0.00045032, 0.00045026, 0.00045033, 0.00045039, 0.00045036,
@markusbaden
markusbaden / ein_fill_paragraph.ipynb
Created November 24, 2012 07:46
fill-paragraph does not work sometimes in Emacs IPython Notebook
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.
@markusbaden
markusbaden / file_magic_blank_lines.ipynb
Last active December 16, 2015 11:09
File cell magic in IPython fails on blank lines
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@markusbaden
markusbaden / file_cell_magiv_resolved.ipynb
Created April 21, 2013 09:49
Verify that PR 3203 solves problem with file cell magic
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.