Welcome To Snipplr


Everyone's Recent Snippets



1 ... 424 425 426 427 428 ... 554
Use this to extract an HTML5 origin from a URI. $1 is the origin. The square brackets are there to support IPv6 addresses. Example: var html5OriginRegex = /^([\w-]+:\/*\[?[\w\.:-]+\]?(?::\d+)?).*/; "http://www.google.com:42/foo/bar/...
0 686 posted 16 years ago by Sephr
Affects <A> tags for links starting with $link Example: LinkReplacer ($text, 'http://www.snipplr.com') affects to <a href="http://www.snipplr.com">Snipplr</a> and <a href="http://www.snipplr.com/blog">Snipplr Blog</a>
0 1035 posted 16 years ago by kossmoss
JavaScritp Form Validation Framework to validate form fields on the fly, no programming knowledge required.
0 863 posted 16 years ago by clickfind
ErrorConstructor produces error constructors that behave the same way as the seven native error constructors. Usage: `ErrorConstructor([constructorName])` *If no constructorName is specified, the default of `Error.prototype.name` is used* Us...
1 772 posted 16 years ago by Sephr
Search for applications by substring and display the results.
0 994 posted 16 years ago by abwaters
Search for applications by developer name and display the results.
0 1081 posted 16 years ago by abwaters
Search for an application by its fully qualified Java package name and display the result.
0 1064 posted 16 years ago by abwaters
With android you can define intent-filters to indicate that your app wants to handle requests for specific urls.
1 1095 posted 16 years ago by abwaters
Technique for launching android market with specific search terms.
0 1020 posted 16 years ago by abwaters
6 1004 posted 16 years ago by kristarella
fix for IE, adds getComputedStyle method for the object window and getPropertyValue method for the object, which returns getComputedStyle
1 4544 posted 16 years ago by Jman
Allows the user to bind an event into a certain position in the call stack for events.
3 1201 posted 16 years ago by garside
1 903 posted 16 years ago by dbug13
0 851 posted 16 years ago by rezzz
One of those common tools that's easy to forget about is the Modulus operator (%), which returns the remainder of a division operation. If you divide some number by two, a remainder of 0 indicates an even number, while a remainder of 1 indicates a...
1 2136 posted 16 years ago by jlizarraga
obviously change url. you'll get (better formatted) something like... curl -o /dev/null -w %{time_total}\\n http://www.google.com % Total % Received % Xferd Average Speed Time Time Time Current D...
0 673 posted 16 years ago by nategood
Extract logins default db settings from one server to export to another
0 704 posted 16 years ago by pollusb
Just a bare-bones DocumentClass template I use.
1 818 posted 16 years ago by allnatural
0 786 posted 16 years ago by allnatural
This is the command to re-enable apache after you disabled it.
0 700 posted 16 years ago by bhubbard
Find out which version of Perl is installed on the server.
0 689 posted 16 years ago by bhubbard
Allows you to send out a email listing all files over 10MB.
0 897 posted 16 years ago by bhubbard
There is a similar snippet on the site, yet it is listed for Windows Powershell, while the syntax is clearly Batch, and secondly, it is very incomplete and no response is coming from the author, so I'm posting my completer version here. Beware, th...
4 1367 posted 16 years ago by Vordreller
3 825 posted 16 years ago by petterdr
1 ... 424 425 426 427 428 ... 554