Javascript Array shuffle in-place





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 7 8 9  ...  14 15 Next »
8
Date Submitted Thu. Mar. 8th, 2007 11:37 PM
Revision 1
Scripter Fordiman
Tags ajax | browser-independent | JavaScript | Library | XML
Comments 0 comments
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:

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
Date Submitted Thu. Nov. 2nd, 2006 3:51 AM
Revision 1
Scripter SCoon
Tags Algorithm | Genetic | Random | Ruby
Comments 1 comments
Genetic Algorithm implementation.

See also "Weighted random selection" for RandomItemSelector class source.
8
Date Submitted Mon. Jul. 24th, 2006 9:54 PM
Revision 1
Helper svachon
Tags "Regular | Expression" | JavaScript | RegExp | String
Comments 0 comments
Gets a regular expression that'll search for any regexp pattern specified in the parameters.
8
Date Submitted Fri. Oct. 6th, 2006 2:42 PM
Revision 1
Helper BrandonReese
Tags "swear filter" | JavaScript | xanga
Comments 1 comments
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
Date Submitted Tue. Mar. 6th, 2007 7:26 PM
Revision 1
Helper albud
Tags JavaScript | String
Comments 1 comments
I like to have these two methods in my toolbelt, even though it's syntactic sugar, I think it aids clarity.
8
Date Submitted Sat. Oct. 15th, 2005 5:42 PM
Revision 1
Helper ses5909
Tags CSharp | Directory | Files | List
Comments 0 comments
List Files in a Directory in C#
8
Date Submitted Wed. Feb. 21st, 2007 8:53 AM
Revision 1
Beginner mikedowson
Tags CSS | JavaScript
Comments 2 comments
An easy way to hide and show div's using Javascript and CSS.

Basically just a slight variation on this script by Real Gagnon.
8
Date Submitted Thu. Apr. 12th, 2007 2:33 PM
Revision 1
Beginner siva
Tags Email | JavaScript | Mail | protect
Comments 4 comments
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...
8
Date Submitted Fri. Dec. 8th, 2006 9:28 PM
Revision 1
Beginner neshumah
Tags ActionScript | Random
Comments 0 comments
Return a random number within a gived range
8
Date Submitted Fri. Aug. 4th, 2006 4:49 AM
Revision 1
Syntax Master sundaramkumar
Tags Array | JavaScript
Comments 0 comments
This code will remove specified no of elements in an js array , from the beggining of it.
« Previous 1 2 3 4 5 6 7 8 9  ...  14 15 Next »