Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A great way to improve the performance of your web app, by using a column in the projects table which stores the number of task associated with it, seen in railscast #23
1
1430
posted 18 years ago by bordalix
A quick and simple way of having any flash messages, from railscast #18
1
1125
posted 18 years ago by bordalix
シンプルãªãƒ‰ãƒãƒƒãƒ—ãƒ€ã‚¦ãƒ³ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã€‚å…¥ã‚Œåæ–¹å¼ã€‚ by http://www.pmob.co.uk/temp/dropdown_horizontal2.htm
1
1407
posted 18 years ago by fjm
For forms with a default value onload you don't want your users to have to select the value, delete it and then insert their own input.
This function focuses on a selected input, then it selects the default text so the user can easily type their o...
1
1503
posted 18 years ago by 1man
STICKER - A valid, easy to use CSS sticky footer by Ryan Fait
This is the basic CSS you need along with the one extra empty
div and the wrapper required to achieve the effect. I suggest
that you leave the * { margin: 0; } code in while testing a...
8
2612
posted 18 years ago by daeliur
The original code was meant to be used with register_globals=on.
If you cannot or don't want to turn that on, then I have modified the code to work with register_globals=off.
4
1688
posted 18 years ago by Jaymoon
********************************************************************************
* *
* Andreas writes groovy scripts! Jana corrects the mistakes! ;-) *
*...
0
1523
posted 18 years ago by asteinhaus
a function to check the validity of the postcode according to UK rules
0
3964
posted 18 years ago by valcartei
echo validarFecha( '1-1-1998', 0 ) ? 'ok' : 'ko' ; #ok
echo validarFecha( '1-1-1998' ) ? 'ok' : 'ko' ; #ko
echo validarFecha( '1980/05/06' ) ? 'ok' : 'ko' ; #ok
echo validarFecha( '1700-5-1' ) ? 'ok' : 'ko' ; #ok
0
1361
posted 18 years ago by nicolaspar
echo ( browser_detection( 'number' ) .''.
browser_detection( 'browser' ) .''.
browser_detection( 'os' ) .''.
browser_detection( 'os_number' ) );
Outputs (browser version, browser, os, os number):
1.5
moz
nt
5.1
if ( ( browser_de...
2
2670
posted 18 years ago by llbbl
Shows reading a file bundled with a Sun SPOT application.
The file, called winners.txt contains the following 2 lines:
Walker
Griffin
-----------------------------------------------------------
The output would include:
NameOfFile=/winners.txt...
0
1158
posted 18 years ago by javapda
This code will show you how to write Mouse Events using AS3 and also some simple Drawing API as well.
3
2548
posted 18 years ago by mswallace
Since there is no convenient way to clear the console in irb on windows, we can simple emulate the dos cls function
1
2863
posted 18 years ago by vanne