Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
2290
posted 16 years ago by benjaminpearson
Den folgenden Code-Fragment im Kopfbereich (header.php) einfügen.
0
1620
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
1696
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
1814
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
4049
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
1904
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
1847
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
1658
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
1725
posted 16 years ago by ReeceMarsland
used to find content that uses the PHP input filter....useful for upgrading core!
0
1899
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
2276
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
2307
posted 16 years ago by webonomic
Bash
Print the number of established and listening connections to your server on port 80 per each IP address
1
4350
posted 16 years ago by tobewan
In order to accurately get the next ID from a SharePoint list you need to access the content database for one reason: If you delete all the items from a list, and execute this simple code: list.Items[list.ItemCount -1].ID) + 1 the ID will always retu...
0
1807
posted 16 years ago by blackf0rk