repeat //JavaScript Function
example:
alert("Jonas\n".repeat(5));
code:
//+ Jonas Raoni Soares Silva //@ http://jsfromhell.com [v1.0] String.prototype.repeat = function(l){ return new Array(l+1).join(this); };
12390 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
alert("Jonas\n".repeat(5));
//+ Jonas Raoni Soares Silva //@ http://jsfromhell.com [v1.0] String.prototype.repeat = function(l){ return new Array(l+1).join(this); };
from audio import * f = 'C:\\Nokia\\Sounds\\Digital\\28050.amr' s = Sound.open(f) s.play()
s.play(3) # 3 times s.play(KMdaRepeatForever) # or just use -2 s.stop() # Ok, enough of it