Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 520 521 522 523 524 ... 554
0 788 posted 17 years ago by asteinhaus
Build URLs for subcategories, e.g. 'cat-child-support.html' becomes '/family-law/child-support/'
0 940 posted 17 years ago by ches
0 745 posted 17 years ago by vanne
Over time, your Mac's Mail program can start to feel sluggish because, like any database, over time it needs to optimized.
4 1168 posted 17 years ago by jonhenshaw
1 781 posted 17 years ago by bordalix
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 909 posted 17 years ago by bordalix
A quick and simple way of having any flash messages, from railscast #18
1 807 posted 17 years ago by bordalix
シンプルなドロップダウンメニュー。入れ子方式。 by http://www.pmob.co.uk/temp/dropdown_horizontal2.htm
1 1099 posted 17 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 1088 posted 17 years ago by 1man
via http://icant.co.uk/csstablegallery/
0 880 posted 17 years ago by fjm
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 1277 posted 17 years ago by daeliur
hoverで透明度
0 748 posted 17 years ago by fjm
時間帯によって、CSSを切り替える。
0 803 posted 17 years ago by fjm
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 990 posted 17 years ago by Jaymoon
******************************************************************************** * * * Andreas writes groovy scripts! Jana corrects the mistakes! ;-) * *...
0 1070 posted 17 years ago by asteinhaus
a function to check the validity of the postcode according to UK rules
0 3449 posted 17 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 1021 posted 17 years ago by nicolaspar
0 795 posted 17 years ago by valcartei
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 1291 posted 17 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 862 posted 17 years ago by javapda
0 785 posted 17 years ago by miziomon
0 787 posted 17 years ago by dima767
1 ... 520 521 522 523 524 ... 554