10 karma · joined Nov 1, 2018 (8y ago) · 8 submissions
comment 1y ago · link · parent
https://medium.com/hackernoon/the-spring-factory-4c3d988e712...
And a bounce function:
https://medium.com/hackernoon/the-bounce-factory-3498de1e526...
comment 5y ago · link · parent
https://towardsdatascience.com/high-performance-code-pays-di...
"The climate crisis threatens human civilization on a grand scale and electricity is frequently produced from fossil fuel. Electricity is then consumed by the operation of computer code. Google alone used 12.8 Terrawatt-hours in 2019 according to its 2020 environmental report, more than many countries and more than several US states. It seems intuitive that improving code efficiency should reduce environmental impact. Does it?
The answer is not at all clear and must be considered on a system by system basis. The main reason is induced demand.
...it will take a centrally coordinated process at both national and international levels that can allocate energy to different industrial and consumer sectors and manage the energy production mix on behalf of the whole of society. Only then we can solve this problem in a rational way that doesn’t depend on luck.
In fairness, software companies aren’t power companies, it’s a little ridiculous to expect them to build their own generation. What we can more expect from them is to pay taxes, divest from fossil fuel companies if they hold securities, and hold their total energy consumption under a ceiling set by a regulator while the society changes the energy mix as fast as possible."
comment 5y ago · link · parent
https://medium.com/insane-before-the-sun/3-nuked-sinking-the...
comment 5y ago · link · parent
https://medium.com/insane-before-the-sun/4-nuclear-blast-eff...
https://medium.com/insane-before-the-sun/2-the-physics-packa...
5.
Nuclear Blast Effects and Thermal Radiation(medium.com ↗)
1 points · by neuroscihacker · 5y ago · discuss
comment 7y ago · link · parent
// Dijkstra, Edgar. "Go To Statement Considered Harmful".
// Communications of the ACM. Vol. 11. No. 3 March 1968. pp. 147-148
if (neighboridx == target) {
goto OUTSIDE;
}comment 8y ago · link · parent
I haven't studied v2's differences in depth, but in v1 I made a few customizations to add timers, chained cross fades, smooth muting, and perceptual volume control (i.e. takes into account the logarithmic response of hearing).
https://github.com/seung-lab/howler.js/commit/fe445afd12cc7b...
https://github.com/seung-lab/sonic-shuffle/blob/master/js/So...
https://github.com/seung-lab/sonic-shuffle/blob/master/js/Mu...
Anyways, thanks Howler team, you made one of my projects much easier to do!
EDIT: Removed an inaccuracy, it's been a while since I looked at the code.