Welcome To Snipplr


Everyone's Recent Snippets



1 ... 464 465 466 467 468 ... 552
0 1605 posted 18 years ago by pollux
Function argument timeinterval is in seconds. For example, SimpleTimer( 5 ) would cause the program to wait for 5 seconds to elapse.
0 2084 posted 18 years ago by Raisor
Pre-selects an html form with a requested value... ie; editing a form from a database
0 1974 posted 18 years ago by davidsword
This will start at the specified URL and recursively download pages up to 3 links away from the original page, but only pages which are in the directory of the URL you specified (emacstips/) or one of its subdirectories. wget will also rewrite the...
10 2846 posted 18 years ago by rwczippy
it needs the GD2 library
5 2310 posted 18 years ago by iTony
an array of US states
0 1978 posted 18 years ago by benrasmusen
This routine can be used to copy the byte values of a float or double. The "isBigEndian" variable needs to be determined (most PCs are little-endian, whereas most embedded microprocessors are big-endian). Instead of using unsigned chars, it can be us...
0 2025 posted 18 years ago by pckujawa
1 1883 posted 18 years ago by Uzbekjon
You can use regular expressions within SQL. This can be quite powerful in selecting data that matches certain conditions. The following example shows a simple regular expression which selects only quarterly periods from a table containing years, quar...
0 4481 posted 18 years ago by webonomic
For a complete list of time/date parameters, visit: http://php.net/manual/function.date.php
1 1619 posted 18 years ago by Jaymoon
This function will sort an array of DOM elements in order of the DOM position. Useful when using calls such as $$("img.L,img.M") which doesn;t return a sorted element array. It uses prototype but you can replace the Prototype.Browser stuff with a...
0 2346 posted 18 years ago by kouphax
Learn how to create CSS curly quotes using only CSS and without images, extra divs or classes
6 2191 posted 18 years ago by neal_grosskopf
Allows you preserve and update a query string and it's existing values easily, instead of constantly appending the new value to the end of the query string
1 2105 posted 18 years ago by simplistik
The only function the Tag Cloud singleton exposes it the process() function which take 3 arguments. 1. Cloud Data - Required. Needs to have a display value property and a count property. The actual property names are configurable but by default...
0 1665 posted 18 years ago by kouphax
Two different ways to open an external link (ones that start in http) in a new window. I know this isn't a great thing to do, but some clients _need_ to have it.
3 2824 posted 18 years ago by 1man
0 5131 posted 18 years ago by webonomic
simple :)
7 2380 posted 18 years ago by antpaw
1 1760 posted 18 years ago by pmaciver
0 2120 posted 18 years ago by septimoc
This is going to run all doctests for all methods in a module. Doctests are a beautiful thing. Note: doctest will only complain if a test fails. If you see on output then all your tests must have passed.
0 1454 posted 18 years ago by stoyan
1 ... 464 465 466 467 468 ... 552