Skip to content

Instantly share code, notes, and snippets.

Jay Newby newby-jay

Block or report user

Report or block newby-jay

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@newby-jay
newby-jay / LV.js
Last active Aug 29, 2015 — 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()];
@newby-jay
newby-jay / index.html
Last active Jan 1, 2018 — 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 / QSA.js
Last active Aug 29, 2015
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 / LICENSE
Last active Mar 22, 2018
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 / README.md
Last active Jul 15, 2019
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 / README.md
Last active Jul 15, 2019
Noisy limit cycle animation
View README.md

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

You can’t perform that action at this time.