NEURON NMODL/MOD File Cheat Sheet

Compile .mod files with with (specify path after to compile specific mod files): nrnivmodl Check units with (nrnivmodl does not check unit consistency): modlunit file.mod Meaning of various NMODL keywords RANGE - varies with position (0-1) on a section. Read/set with section.var or section(0.5).var. If section.nseg > 1:section(0.5).var can have a different value than section(0 … Continue reading NEURON NMODL/MOD File Cheat Sheet

We will probably simulate volcanic eruptions to offset global warming

Spraying volcanic-like particles in the upper atmosphere would cost a fraction of today's wildfire and hurricane costs, and a fraction of fossil fuel company profits Why band-aid-like, simulated volcano eruptions (a.k.a. Stratospheric Aerosol Injections) will probably be the most cost-effective way to lower global temperatures while our civilization phases out the use of fossil fuels … Continue reading We will probably simulate volcanic eruptions to offset global warming

JavaScript Cheat Sheet

Clear an array array.length = 0 linq.js example Enumerable    .from(some_array)    .where(i => i.prop == test_value)    .select(i => {"a":i.a_val, "b":i.b_val})    .distinct(s => s["a"])    .toArray(); jQuery create new element, attach an event, and add it to the list of elements of a parent element jQuery("<span id='test'>Some text</span>")    .on("click", function() { alert(this.id … Continue reading JavaScript Cheat Sheet