Javascript Array shuffle in-place
8
Fordiman
libNog is a 9k library to provide somewhat easier browser-independence. It is not yet complete, and will be continuously revised. It grew from this snippet, and is still growing as I find things I use often.
Presently, libNog features:
The above link will point you to the API documentation and history of libNog, as well as where to download the library.
Presently, libNog features:
A way to browser-independently get an XMLHttpRequest object.
A set of simple methods for GET, POST, HEAD, and to include other Scripts.
Simple methods for className control
A completely abstracted form of getElement*
Browser-independent methods for attaching and detaching event handlers
An event-normalization routine
A simple one-command 'Stop the Event' routine
And the big one: A simplified Class object by which classes can be built in JavaScript.
The above link will point you to the API documentation and history of libNog, as well as where to download the library.
8
Genetic Algorithm implementation.
See also "Weighted random selection" for RandomItemSelector class source.
See also "Weighted random selection" for RandomItemSelector class source.
8
svachon
Gets a regular expression that'll search for any regexp pattern specified in the parameters.
8
This is a swear filter script I wrote for my xanga blog. I don't know if it has any application anywhere else. This will replace the swear words listed in the array with the character defined in blank_char. This isn't perfect but it works pretty well.
8
I like to have these two methods in my toolbelt, even though it's syntactic sugar, I think it aids clarity.
8
List Files in a Directory in C#
8
An easy way to hide and show div's using Javascript and CSS.
Basically just a slight variation on this script by Real Gagnon.
Basically just a slight variation on this script by Real Gagnon.
8
You can search for "@" or something like mail information in your page source code. You'll find nothing.
You can have link of your mail with a title or just you mail address as the title. Hope this code have no problem...
You can have link of your mail with a title or just you mail address as the title. Hope this code have no problem...
8
Return a random number within a gived range
8
This code will remove specified no of elements in an js array , from the beggining of it.









