Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Simply set the id in the content, and use a hash in the anchor to scroll to it.
0
1034
posted 13 years ago by thewickedchemist
Checks for fake DNS as well as utilizes regex functions to check the string for proper length & characters.
0
1935
posted 13 years ago by thewickedchemist
Making a python process exit with error code 1 after 30 seconds. Exit is unclean (no garbage is collected, no flushed buffers, etc...).
0
1520
posted 13 years ago by jarnaldich
Add this snippet to the functions.php to add 'Donate' Button on your Wordpress Website.
0
1267
posted 13 years ago by planetabhi
Add this snippet to the functions.php to render your twitter followers count.
Replace 'planetabhi' with your twitter screen name
0
1330
posted 13 years ago by planetabhi
Add this snippet to the functions.php of your wordpress theme. This will add a select menu with an automatically generated list of your shortcodes for your pages and posts.
1
1026
posted 13 years ago by planetabhi
This is just a quick and simple lazy way to do this, didn't feel like using a plug-in for something that is only used on one page...
0
1137
posted 13 years ago by thewickedchemist
This Query allows you to get the number of shares and other data associated with an URL in Json Format.
0
1101
posted 13 years ago by jhonqwerty
It can be useful to take a peek at what Apache is doing but I always forget the location of the Apache logs so I can use tail.
0
1168
posted 13 years ago by inreflection7
This is a base function to use with Joomla! to display the view using the Joomla cache system.
0
1642
posted 13 years ago by kevincam
Fooman GoogleAnalyticsPlus:
http://www.magentocommerce.com/magento-connect/fooman-googleanalyticsplus.html
The key to seeing the different steps in your checkout is ensuring a page view is triggered each time one of the sections of the checkout i...
1
1498
posted 13 years ago by TheJasonParker
Assuming that cell E15 contains a Belgina code consisting of four numbers
0
1176
posted 13 years ago by shahways
List of websafe fonts. Websafe (or "web safe", "safe for the web") fonts are supposedly fonts that are common among all versions of Windows, Mac, Linux, etc. Fonts that you expect everyone viewing your webpage to have.
0
1236
posted 13 years ago by praveensewak
Extend jQuery :selector types
Ex: $("input:text")
$("input:email")
1
1149
posted 13 years ago by inreflection7
Just paste the following snippet into your functions.php file and save it.
0
1187
posted 13 years ago by planetabhi
Credit goes to [shyul](http://forum.mamp.info/memberlist.php?mode=viewprofile&u=61837"shyul") and the original forum post here: [original_post](http://forum.mamp.info/viewtopic.php?t=14115"original_post")
You need to modify the following file " ...\...
0
1682
posted 13 years ago by manolis
For when you really just need a short description field along with a title for your slideshows. Just drop this into the functions.php and meteor-slideshow.php in the theme folder.
0
1614
posted 13 years ago by crypticsoft
Simple CSS Chess Board marked up with tables and styled with CSS3 psuedo classes. Basic use of :nth-child(odd) and :nth-child(even) to achieve the alternate black and white checkboxes. Check out the CSS code - it's dead simple!
0
1006
posted 13 years ago by jntu_gnec
This snippet will enable you to add shortcode to a wordpress custom field. Normally wordpress does not run shortcodes that you put into a custom field. Just put this code into whatever page you are displaying the results of the shortcode, and change...
0
1296
posted 13 years ago by leeboyce
Capture Web Screenshots easily with the [GrabzIt ](http://grabz.it/) Python API
You will need the free [GrabzIt Code Library](http://grabz.it/api/python/download.aspx) to get started.
1
1263
posted 13 years ago by Maximus1983
Here is a simple filter to automatically add a class attribute like widget-order-1 to all widgets within sidebars (from konstruktors.com)
0
1791
posted 13 years ago by lashon
Source: http://css-tricks.com/favicons-next-to-external-links/
0
1179
posted 13 years ago by thewickedchemist
Takes titles from a certain category and lists them in an unordered list.
0
1097
posted 13 years ago by thewickedchemist
WordPress test post, for theme development, style testing etc.
0
1195
posted 13 years ago by lunuledesign
This code allows the upload of files with extensions usually forbidden in wordpress
0
1003
posted 13 years ago by scienzedellevanghe