Skip to content

Instantly share code, notes, and snippets.

View newby-jay's full-sized avatar

Jay Newby newby-jay

View GitHub Profile
@newby-jay
newby-jay / README.md
Last active July 15, 2019 11:37
Noisy limit cycle animation
View README.md

Effects of moderate noise on a limit cycle oscillator: Counterrotation and bistability (Phys. Rev. Lett., 2014)

@newby-jay
newby-jay / README.md
Last active July 15, 2019 11:30
Neuronal excitation from stochastic ion channels
View README.md

This is an animation representing the Morris-Lecar model of a neuron driven by stochastic ion channels. Ion channels open and close randomly through time, and they are visible while open. The fast sodium channels are colored orange, and the slow potassium channels are colored blue.

@newby-jay
newby-jay / LICENSE
Last active June 1, 2020 08:17
Vector field flow visualization
View LICENSE
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
@newby-jay
newby-jay / QSA.js
Last active August 29, 2015 14:17
Stochastic bistable switching
View QSA.js
(function anim () {
var sigma = 0.4,
dt = 0.05,
x = -1,
t = 0,
nSamples = 1,
rn = d3.random.normal(0, sigma*Math.sqrt(dt));
function evolveSimulation() {
var i = 0;
while (i++ < 25) {
@newby-jay
newby-jay / index.html
Last active January 1, 2018 15:46 — forked from syntagmatic/index.html
Brownian motion
View index.html
<style>
html, body { margin: 0; padding: 0;}
</style>
<canvas id="canvas"></canvas>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var num = 1e4;
var canvas = document.getElementById("canvas");
var width = canvas.width = 960;
var height = canvas.height = 500;
@newby-jay
newby-jay / LV.js
Last active August 29, 2015 14:24 — forked from mbostock/.block
Chemical reaction
View LV.js
(function () {
var canvas = document.getElementById("canvas"),
width = canvas.width = 960,
height = canvas.height = 500,
g = canvas.getContext("2d");
var reactionRadius2 = 2,
alpha = 0.007, // fraction of A molecules made per step
gamma = alpha/1.5, // fraction of B molecules that decay per step
randIC = function (i) {
return [width*Math.random(), height*Math.random()];