Below are new or revised snippets in the last thirty days.

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

0
Date Submitted Wed. Mar. 3rd, 2010 10:37 AM
Revision 1
Beginner wizard04
Tags alert | console | debug | JavaScript | object | Popup | Window
Comments 0 comments
An object including a few helpful functions for debugging. Functions displaying popups or alerts are limited to a certain number of consecutive times before asking to continue, in case they end up being called in an endless loop or something.
0
Date Submitted Wed. Mar. 3rd, 2010 11:05 AM
Revision 1
Beginner wizard04
Tags Email | mailto | Parse | regex | URI | URL | validation
Comments 0 comments
(Supported by JavaScript, maybe other languages)
0
Date Submitted Wed. Mar. 3rd, 2010 11:13 AM
Revision 1
Beginner wizard04
Tags DOMAIN | Email | IP | mailto | normalize | Parse | URI | URL
Comments 0 comments
Functions for validating, parsing, and normalizing URIs and their parts.
If you find any errors, please leave a comment.

parseURI(str) splits a URI into its parts
parseQueryNumeric(str) splits a query string into its name/value pairs; returns a 2-D array
parseQueryAssociative(str) splits a query string into its name/value pairs; returns an associative array
parseURL(str) splits a URL (i.e., http(s) scheme URI) into its parts
normalizeURLDomain(domain) converts an obscured URL domain to a more readable one
normalizeIPv4(ip) normalizes an IPv4 address
normalizeIPv6(ip) normalizes an IPv6 address
normalizeURLPath(path) converts an obscured URL path to a more readable one
parseMailto(str) splits a mailto scheme URI into its parts
normalizeEmailAddress(str) converts an obscured email address to a more readable one; unfolds and removes comments
fixURL(str, domain) attempts to fix a URL if needed
fixHyperlink(str, domain, allowMailto) attempts to fix a hyperlink address (http(s) or mailto) if needed

For URLs, note that IPvFuture addresses are not supported.
2
Date Submitted Fri. Mar. 5th, 2010 2:48 PM
Revision 1
Scripter Fordiman
Tags "Expression Language" | EL | JSTL
Comments 0 comments
In JSTL and EL, there is not floor, round, or ceiling function. Here is some relatively uncomplex ways to achieve the same effect.
0
Date Submitted Sat. Mar. 6th, 2010 9:13 PM
Revision 1
Scripter Cloudgen
Tags Expression | HTML | pair | Regular
Comments 0 comments
This is the perfect regular expression for extracting a pair of html tags. For details, please seeThe regular expression for selecting a pair of HTML tag
1
Date Submitted Tue. Mar. 9th, 2010 7:26 AM
Revision 1
Beginner PravinChk
Tags Hello | World
Comments 0 comments
Prints Hello world on console
1
Date Submitted Wed. Mar. 10th, 2010 5:23 AM
Revision 1
Beginner longkaty
Tags baidu
Comments 0 comments
Use this script gain baidu.com's emails.