Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 374 375 376 377 378 ... 552
1 1774 posted 17 years ago by brandonio21
A monkey patch splitting a string into sentences.
0 2505 posted 17 years ago by cocomo
How to generate rounded corners in Firefox and Safari before CSS3 is fully implemented.
3 1847 posted 17 years ago by ff1959
Sometimes, the first or last block in a region needs to be styled different than the rest. This solution do this in simple way for Drupal 6. (originaly code from [email protected]: http://drupal.org/node/293188#comment-1282186)
2 2069 posted 17 years ago by Fake
0 1761 posted 17 years ago by wearetherock
note to self.
0 1569 posted 17 years ago by obsessivejosh
This function returns the array with all instances of the specified value removed
1 2194 posted 17 years ago by jlvallelonga
Some valid UTF-8 characters are illegal in XML: http://www.w3.org/TR/REC-xml/#charsets This statement strips them from your strings.
0 4145 posted 17 years ago by jdbartlett
1 1626 posted 17 years ago by wearetherock
1 2265 posted 17 years ago by AzizLight
This will get the document's body in a very agreeable manner - it returns the first div on the page if there is no body (hey it can happen). Adapted from code by Scott Schiller
0 1581 posted 17 years ago by remotezygote
on cygwin, run 'CPAN' to manage module installs
0 1858 posted 17 years ago by rowntreerob
Matches are as follows: 0 = protocol 1 = fqdn 2 = subdomain 3 = top level subdomain 4 = domain (blah.com) 5 = port 6 = path 7 = query string 8 = hash
1 2138 posted 17 years ago by remotezygote
0 1858 posted 17 years ago by paulbooker
A simple function that generates a select drop down. It takes 3 values. The select name ,the mode (true for hours / false for minutes) and the selected option.
1 2164 posted 17 years ago by chchrist
1 2187 posted 17 years ago by paulgrenwood
Search Engine Optimisation, or SEO is something that a lot of bloggers get obsessed about, whilst others think it’s a load of rubbish. I’m halfway between the two – whilst I believe that you can change certain things to better SEO your content,...
0 1655 posted 17 years ago by paulgrenwood
Whilst there are a number of ways of displaying thumbnails, this is still my favourite (even if it does require the most work!). First, upload timthumb to /wp-content/themes/yourtheme/ and create an image 250px by 250px with your site’s logo and up...
0 1955 posted 17 years ago by paulgrenwood
This is something that I wished I’d thought of a long time ago – show other posts in the same series using not a plugin but custom fields. All you’ve got to do for this trick to work is create a custom field ‘Series’ with a link to each oth...
1 1825 posted 17 years ago by paulgrenwood
Allow Visitors to Email Posts to Their Friends
0 1630 posted 17 years ago by paulgrenwood
1 1769 posted 17 years ago by paulgrenwood
2 1981 posted 17 years ago by paulgrenwood
E-mail validation is perhaps the most used validation in web forms, this code will validate email address and also optionally check the MX records of the domain provided in email address to make email validation more robust.
2 2357 posted 17 years ago by paulgrenwood
This function will truncate strings only at word breaks which can be used to show a teaser for complete article without breaking words.
0 2100 posted 17 years ago by paulgrenwood
1 ... 374 375 376 377 378 ... 552