Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Making a python process exit with error code 1 after 30 seconds. Exit is unclean (no garbage is collected, no flushed buffers, etc...).
0
1883
posted 13 years ago by jarnaldich
Add this snippet to the functions.php to add 'Donate' Button on your Wordpress Website.
0
1638
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
1752
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
1347
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
1499
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
1473
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
1544
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
2603
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
1849
posted 13 years ago by TheJasonParker
Assuming that cell E15 contains a Belgina code consisting of four numbers
0
1517
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
1588
posted 13 years ago by praveensewak
Extend jQuery :selector types
Ex: $("input:text")
$("input:email")
1
1558
posted 13 years ago by inreflection7
Just paste the following snippet into your functions.php file and save it.
0
1599
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
2112
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
2154
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
1305
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
1684
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
1656
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
2164
posted 13 years ago by lashon
Source: http://css-tricks.com/favicons-next-to-external-links/
0
1531
posted 13 years ago by thewickedchemist
Takes titles from a certain category and lists them in an unordered list.
0
1469
posted 13 years ago by thewickedchemist
WordPress test post, for theme development, style testing etc.
0
1507
posted 13 years ago by lunuledesign
This code allows the upload of files with extensions usually forbidden in wordpress
0
1303
posted 13 years ago by scienzedellevanghe
You can save this function in your common function file of config file, which must be included in the page which source code you want to see and simply add kode to the end of the URL and see the complete PHP code of that file on browser
0
2020
posted 13 years ago by xkeshav