Welcome To Snipplr


Everyone's Recent Snippets



1 ... 495 496 497 498 499 ... 552
Stolen from the mentioned URL - this is used to make SPRY Framework work together with MYSQL.
2 2524 posted 18 years ago by Nils
Easy functions, comments in code. From: http://www.ilovejackdaniels.com/asp/vbscript-regular-expressions/
1 2008 posted 18 years ago by jc001
Usage: onmouseout='if (isMouseLeaveOrEnter(event, this)) YourActionHere();' onmouseover='if (isMouseLeaveOrEnter(event, this)) YourOtherActionHere();'
1 2250 posted 18 years ago by Winkyboy
Para realizar validaciones en Javascript rápidamente. Requiere que en la etiqueta metamos un onSubmit="return checkform(this);" . Este trozo de código es para dos campos input con nombres campo1 y campo2.
0 1362 posted 18 years ago by betacontinua
This is a command line parsing routine I found online. Original comments left in tact.
0 1723 posted 18 years ago by jc001
2 1801 posted 18 years ago by cburyta
Sure that programmers know this, but me as a sysadmin does not use svn that much.
3 2860 posted 18 years ago by therobot
0 1568 posted 18 years ago by krimple
If you have a complex function you may need to pass it lots of arguments. Instead of having to remember how many you need to pass, and passing 'null' for un needed arguments, pass the function an object. Now you can set the defaults inside the fun...
0 2077 posted 18 years ago by 1man
1 3588 posted 18 years ago by dbug13
The PHP Code appears in Post Comments
4 3483 posted 18 years ago by localhorst
Removes diacritics from file name before adding it to the archive. Archive file name retains diacritics.
0 3339 posted 18 years ago by karelklic
Very basic but I use various variations all the time.
0 3937 posted 18 years ago by karelklic
0 1554 posted 18 years ago by LukeLarsen
0 1365 posted 18 years ago by LukeLarsen
Diese Funktion wendelt Entities in HTML Quellcode um, ohne dabei den HTML Quellcode zu zerstören.
1 2128 posted 18 years ago by OscarWilde
I have not tested it yet but the author claims to make your printer show some random messages.
0 1867 posted 18 years ago by planetcall
0 1525 posted 18 years ago by tranvinhnt
This command will not delete the .DS_Store files from the file system, just take them out of version control. Before doing this it would be a good idea to setup the repository to ignore .DS_Store files.
1 3214 posted 18 years ago by jachin
Inserts "first" and "last" classes to the first and last items respectively. "first" and "last" classes defined in CSS as without padding.
2 2037 posted 18 years ago by nijgnet
Sets the sidebar photo appropriate for a section of the site by determining the parent Page of the subpage.
4 2612 posted 18 years ago by nijgnet
If you've ever used a strict doctype and used the target attribute on links you'll notice that it doesn't validate. Here is an easy solution.
4 3829 posted 18 years ago by neal_grosskopf
Find depreciated elements and attributes using CSS . Simply add the CSS below to the end of your style sheet and it will highlight bad code.
5 2511 posted 18 years ago by neal_grosskopf
I can't remember if this code is updated for IE7, if it is then it should be working in at least IE6-7, Safari 2-3, Opera 8 and Firefox 2-3. Obviously the image_iefix is just for IE6.
2 2174 posted 18 years ago by teddyzetterlund
0 1930 posted 18 years ago by stavelin
1 ... 495 496 497 498 499 ... 552