Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is an regular expression to match an HTML Tag from a given input.
0
1740
posted 16 years ago by rupakdhiman
Instructions for enabling multiple virtual hosts on Mac OSX. Based on default Apple Apache install. If you don't want to be manually changing these files, checkout the very slick GUI application - VirtualHostX (http://clickontyler.com/virtualhostx/)
3
2041
posted 16 years ago by benjaminpearson
Den folgenden Code-Fragment im Kopfbereich (header.php) einfügen.
0
1424
posted 16 years ago by Perun
This is using list items to create the calendar so it is very flexible with CSS. Right now it's just displaying dummy data, but you can easily integrate a mysql call into the loop.
3
1479
posted 16 years ago by SmpleJohn
I found the tablesorter - jQuery plugin cool and easy to-be implemented. Plugin is written by Christian Bach and my snippet uses tablesorter version 2.0.3. Images are stored on my server as well as inlcuded .js files in example directory. Project's s...
1
1597
posted 16 years ago by lukaz
This helps to avoid the "duplicated content" indexation by google on wordpress comment pages by changing the post content to the_excerpt ONLY in comment pages.
0
3796
posted 16 years ago by DarkPepe
Since PHP doesn't have a builtin imagecreatefrombmp, this allows users to upload bmp files and you can handle them and create a different image type from it.
0
1674
posted 16 years ago by gms8994
Searches the code for all functions in the current database and returns results containing the function name, the character index where the first match was found, and a portion of the code where the match occurred.
1
1669
posted 16 years ago by kencyber
There's no built-in "loop" property on the Silverlight mediaElement control. Add a listener to any mediaElement and this function will loop it.
0
1463
posted 16 years ago by johnlync
used to copy the contents of one folder into another on mac replacing only the files that are duplicates (like windows)
0
1495
posted 16 years ago by ReeceMarsland
used to find content that uses the PHP input filter....useful for upgrading core!
0
1672
posted 16 years ago by ReeceMarsland
This command will email the contents of emailbody.txt to [email protected] with the subject My subject line.
0
2039
posted 16 years ago by webonomic
This creates an array of various linux shell names, loops through the array and ouputs a file called shell_locations.txt showing where the shells are located on the linux system.
0
2065
posted 16 years ago by webonomic