I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nx.audio { | |
/** | |
*/ | |
public class Oscillator implements ISampleGenerator { | |
private static const WAVEFORM_PULSE:uint = Waveform.PULSE; | |
private static const WAVEFORM_SAWTOOTH:uint = Waveform.SAWTOOTH; | |
private static const WAVEFORM_SINE:uint = Waveform.SINE; | |
private static const WAVEFORM_TRIANGLE:uint = Waveform.TRIANGLE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this is an event dispatcher at its bare minimum. | |
var EventDispatcher; | |
(function () { | |
"use strict"; | |
/** | |
* Minimal event dispatcher | |
* @see http://stackoverflow.com/q/7026709/87002 | |
* @constructor | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install python-glade2 python-appindicator | |
git clone https://github.com/Kilian/f.lux-indicator-applet.git | |
cd f.lux-indicator-applet | |
chmod +x setup.py | |
sudo ./setup.py install | |
fluxgui |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent