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
//////////////////////////////////////////////////////////////////////////////// | |
for ( var everything in large.amounts ) { | |
count++; | |
} | |
//////////////////////////////////////////////////////////////////////////////// | |
monday.rgb = 0x0000ff; |
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
// Singleton implemented abstractly in a Class | |
class Singleton { | |
constructor() { | |
var instance = ( Singleton._instance !== undefined ) ? Singleton._instance : this; | |
Singleton._instance = instance; | |
return instance; | |
} |
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
// Fix for https://github.com/jhalme/webaudio-mod-player | |
// WebAudio is suspended on iOS by default, until an attempt to | |
// play audio immediately follows a user interaction. | |
// A simple workaround is to pre-initialize the context | |
// and bind a user interaction that plays an empty | |
// buffer once. Doing so unlocks the suspended state for the | |
// remainder of the session. |