Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Checks for fake DNS as well as utilizes regex functions to check the string for proper length & characters.
0
1253
posted 12 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
1169
posted 12 years ago by jarnaldich
Add this snippet to the functions.php to add 'Donate' Button on your Wordpress Website.
0
906
posted 12 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
992
posted 12 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
719
posted 12 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
788
posted 12 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
790
posted 12 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
809
posted 12 years ago by inreflection7
This is a base function to use with Joomla! to display the view using the Joomla cache system.
0
938
posted 12 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
1158
posted 12 years ago by TheJasonParker
Assuming that cell E15 contains a Belgina code consisting of four numbers
0
801
posted 12 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
866
posted 12 years ago by praveensewak
Extend jQuery :selector types
Ex: $("input:text")
$("input:email")
1
738
posted 12 years ago by inreflection7
Just paste the following snippet into your functions.php file and save it.
0
866
posted 12 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
1287
posted 12 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
1171
posted 12 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
700
posted 12 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
963
posted 12 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
940
posted 12 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
1380
posted 12 years ago by lashon
Source: http://css-tricks.com/favicons-next-to-external-links/
0
810
posted 12 years ago by thewickedchemist
Takes titles from a certain category and lists them in an unordered list.
0
775
posted 12 years ago by thewickedchemist
WordPress test post, for theme development, style testing etc.
0
870
posted 12 years ago by lunuledesign
This code allows the upload of files with extensions usually forbidden in wordpress
0
670
posted 12 years ago by scienzedellevanghe