Navigation Home / Tags / List

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

« Previous 1 2 Next »
0
Date Submitted Thu. Feb. 7th, 2013 11:58 AM
Revision 1
Helper hexahow
Tags country | Down | drop | geolocation | List
Comments 0 comments
The following codes populate the country list into dropdown box based on browser's languages. The country information is getting from geolocation.com
0
Date Submitted Sun. Nov. 18th, 2012 12:13 AM
Revision 1
Helper mathbaws1
Tags 2012 | linked | List | podataka | Stack | stog | strukutre
Comments 0 comments
Zaglavlje pokazivaci.h vezano uz kolegiji strukture podataka 2012. drugi zadataka
1
Date Submitted Mon. Jan. 18th, 2010 5:56 PM
Revision 1
Helper chorny
Tags Array | List | max | min | Perl
Comments 0 comments
Detect indexes of max and min values of an array in Perl
-1
Date Submitted Sat. May. 10th, 2008 11:10 AM
Revision 1
Beginner Kelmi
Tags doubles | List | REMOVE | Set
Comments 3 comments
The method 'removeDoubles' uses a HashSet to remove double elements from a list without creating another list. The first occurrences of the multiple elements are kept, others will be removed. The order of the list will be preserved. The parameter list's iterator must support remove. Example of use is given in the main-method.
10
Date Submitted Wed. Dec. 27th, 2006 9:40 AM
Revision 1
Scripter bertheymans
Tags Java | List | Set | uniqueness
Comments 2 comments
This is a very convenient way to remove all doubles from a List in Java. The only prerequisite is that the elements in the list have proper equals and hashCode methods.

It work by using the constructor of a Set that takes a Collection as an argument.

I poured the snippet in a little program so can run it straight away.
7
Date Submitted Thu. Nov. 2nd, 2006 1:49 AM
Revision 1
Scripter SCoon
Tags List | Random | Ruby
Comments 1 comments
Weighted random selection from the list.

Don't forget to call itemsChanged after updating list content.
14
Date Submitted Mon. Oct. 2nd, 2006 1:05 PM
Revision 1
Beginner drench
Tags Array | JavaScript | List | Random | shuffle
Comments 3 comments
It works with Array types. The example is a simple list of numbers, but the array could contain anything; lists of strings, functions, DOM nodes, whatever. Unfortunately, a lot of things that seem like arrays in the DOM aren't really, so you can't shuffle the images on a page with just document.images.shuffle() all by itself.
12
Date Submitted Sat. Mar. 25th, 2006 9:32 PM
Revision 1
Beginner baldo
Tags Calendar | CSS | definition | HTML | List | xhml
Comments 3 comments
this is a css to style a definition list to get a calendar list type.

See the final render.
9
Date Submitted Sat. Oct. 15th, 2005 5:42 PM
Revision 1
Helper ses5909
Tags CSharp | Directory | Files | List
Comments 1 comments
List Files in a Directory in C#
4
Date Submitted Sat. Oct. 15th, 2005 5:32 PM
Revision 1
Helper ses5909
Tags Directory | Files | List | VB.NET
Comments 1 comments
List Files in a Directory in VB.NET
« Previous 1 2 Next »