Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- 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
2062
posted 14 years ago by jarnaldich
Add this snippet to the functions.php to add 'Donate' Button on your Wordpress Website.
0
1804
posted 14 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
1911
posted 14 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
1491
posted 14 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
1655
posted 14 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
1622
posted 14 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
1695
posted 14 years ago by inreflection7
This is a base function to use with Joomla! to display the view using the Joomla cache system.
0
2766
posted 14 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
2021
posted 14 years ago by TheJasonParker
Assuming that cell E15 contains a Belgina code consisting of four numbers
0
1667
posted 14 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
1737
posted 14 years ago by praveensewak
Extend jQuery :selector types
Ex: $("input:text")
$("input:email")
1
1730
posted 14 years ago by inreflection7
Just paste the following snippet into your functions.php file and save it.
0
1770
posted 14 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
2318
posted 14 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
2342
posted 14 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
1479
posted 14 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
1840
posted 14 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
1823
posted 14 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
2349
posted 14 years ago by lashon
Source: http://css-tricks.com/favicons-next-to-external-links/
0
1697
posted 14 years ago by thewickedchemist
Takes titles from a certain category and lists them in an unordered list.
0
1644
posted 14 years ago by thewickedchemist
WordPress test post, for theme development, style testing etc.
0
1658
posted 14 years ago by lunuledesign
This code allows the upload of files with extensions usually forbidden in wordpress
0
1446
posted 14 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
2178
posted 14 years ago by xkeshav