<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - misteroneill</title>
<link>http://snipplr.com/users/misteroneill</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 14 Feb 2012 18:18:45 GMT</pubDate>
<item>
<title>(JavaScript) Time in Seconds to h:mm:ss</title>
<link>http://snipplr.com/view/20348/time-in-seconds-to-hmmss/</link>
<description><![CDATA[ <p>I wrote this for displaying audio/video clip durations.  This function takes a single argument (a number of seconds) and returns a formatted string in the format "hh:mm:ss".  Hours will not show if the total is less than an hour, minutes will always show.  Minutes will show leading zero only if the total is greater than an hour. If less than a minute, will show "0" for minutes.  Examples: 1:15:05 (4505 seconds), 36:01 (2161 seconds), 0:45 (45 seconds)</p> ]]></description>
<pubDate>Mon, 28 Sep 2009 12:01:47 GMT</pubDate>
<guid>http://snipplr.com/view/20348/time-in-seconds-to-hmmss/</guid>
</item>
<item>
<title>(CSS) Reset CSS plus Clearfix</title>
<link>http://snipplr.com/view/19091/reset-css-plus-clearfix/</link>
<description><![CDATA[ <p>This is Eric Meyer's (meyerweb.com/eric/) CSS Reset with the "clearfix" class added in for forcing containers to wrap floats.  Also, uses the uncommon "zoom" property to achieve the same effect in IE6/7.  I like "zoom:1;" for this purpose because as an invalid CSS property, it stands a much better chance of not influencing other/good browsers' rendering.</p> ]]></description>
<pubDate>Tue, 01 Sep 2009 00:15:48 GMT</pubDate>
<guid>http://snipplr.com/view/19091/reset-css-plus-clearfix/</guid>
</item>
<item>
<title>(PHP) Check for New Lines</title>
<link>http://snipplr.com/view/19090/check-for-new-lines/</link>
<description><![CDATA[ <p>This function simply returns a Boolean value to determine whether or not a string containers new line characters.  Useful in cleaning data.</p> ]]></description>
<pubDate>Tue, 01 Sep 2009 00:12:57 GMT</pubDate>
<guid>http://snipplr.com/view/19090/check-for-new-lines/</guid>
</item>
<item>
<title>(CSS) CSS for IE6 PNG-24 Backgrounds</title>
<link>http://snipplr.com/view/19089/css-for-ie6-png24-backgrounds/</link>
<description><![CDATA[ <p>This bit of CSS allows IE6 to render alpha-transparency in PNG-24 images.  However, using Microsoft filters can dramatically degrade performance, so use sparingly and consider an alternative (non-tranparent) image for IE6 specifically.</p> ]]></description>
<pubDate>Tue, 01 Sep 2009 00:07:20 GMT</pubDate>
<guid>http://snipplr.com/view/19089/css-for-ie6-png24-backgrounds/</guid>
</item>
<item>
<title>(jQuery) Prevent Background Image Flicker in IE6</title>
<link>http://snipplr.com/view/19088/prevent-background-image-flicker-in-ie6/</link>
<description><![CDATA[ <p>This code fixes a rarely encountered background flickering bug in IE6.</p> ]]></description>
<pubDate>Tue, 01 Sep 2009 00:03:12 GMT</pubDate>
<guid>http://snipplr.com/view/19088/prevent-background-image-flicker-in-ie6/</guid>
</item>
<item>
<title>(PHP) Check For Email Headers</title>
<link>http://snipplr.com/view/19087/check-for-email-headers/</link>
<description><![CDATA[ <p>This function simply returns a Boolean value based on whether or not some email header values are inserted into a string.  Helps prevent spam bots from using a form.</p> ]]></description>
<pubDate>Tue, 01 Sep 2009 00:01:03 GMT</pubDate>
<guid>http://snipplr.com/view/19087/check-for-email-headers/</guid>
</item>
<item>
<title>(PHP) Show Number Ordinals</title>
<link>http://snipplr.com/view/19086/show-number-ordinals/</link>
<description><![CDATA[ <p>This function takes a number and appends an ordinal suffix.  By default, it uses the HTML tag  around the suffix, but passing a Boolean false for the second parameter will not.</p> ]]></description>
<pubDate>Mon, 31 Aug 2009 23:59:03 GMT</pubDate>
<guid>http://snipplr.com/view/19086/show-number-ordinals/</guid>
</item>
<item>
<title>(PHP) Replace URLs in String with HTML Links</title>
<link>http://snipplr.com/view/19085/replace-urls-in-string-with-html-links/</link>
<description><![CDATA[ <p>This is a simple function to parse a string and turn any URLs it finds into links.  Adds a rel attribute to the link with a value of "nofollow" by default.</p> ]]></description>
<pubDate>Mon, 31 Aug 2009 23:53:00 GMT</pubDate>
<guid>http://snipplr.com/view/19085/replace-urls-in-string-with-html-links/</guid>
</item>
<item>
<title>(MySQL) United States and Territories</title>
<link>http://snipplr.com/view/18761/united-states-and-territories/</link>
<description><![CDATA[ <p>This creates a table of the states in the US as well as territories.</p> ]]></description>
<pubDate>Sun, 23 Aug 2009 22:18:49 GMT</pubDate>
<guid>http://snipplr.com/view/18761/united-states-and-territories/</guid>
</item>
<item>
<title>(MySQL) ISO Country List/Table</title>
<link>http://snipplr.com/view/18760/iso-country-listtable/</link>
<description><![CDATA[ <p>Pretty straightforward - some SQL to create a table called "countries" and populate it with an ISO standard list of countries.</p> ]]></description>
<pubDate>Sun, 23 Aug 2009 22:16:23 GMT</pubDate>
<guid>http://snipplr.com/view/18760/iso-country-listtable/</guid>
</item>
<item>
<title>(PHP) Check for Valid Email Address</title>
<link>http://snipplr.com/view/18759/check-for-valid-email-address/</link>
<description><![CDATA[ <p>This is a pretty robust email address validation function I came across that hasn't failed me yet.</p> ]]></description>
<pubDate>Sun, 23 Aug 2009 22:13:03 GMT</pubDate>
<guid>http://snipplr.com/view/18759/check-for-valid-email-address/</guid>
</item>
<item>
<title>(PHP) Stripslashes from String or Array</title>
<link>http://snipplr.com/view/18758/stripslashes-from-string-or-array/</link>
<description><![CDATA[ <p>If you're on a server that uses magic_quotes and you can't change that (depending on php.ini settings) I've used this function to remove annoying escape slashes.  Also, sometimes you'll work with data coming from a database that someone wrote escaping slashes into.</p> ]]></description>
<pubDate>Sun, 23 Aug 2009 22:10:23 GMT</pubDate>
<guid>http://snipplr.com/view/18758/stripslashes-from-string-or-array/</guid>
</item>
<item>
<title>(jQuery) jQuery Clear Default Input Values</title>
<link>http://snipplr.com/view/15360/jquery-clear-default-input-values/</link>
<description><![CDATA[ <p>This function loops through a result set of inputs and for each result, it clears the default value onfocus and restores the default if the value is empty onblur.</p> ]]></description>
<pubDate>Wed, 27 May 2009 15:32:10 GMT</pubDate>
<guid>http://snipplr.com/view/15360/jquery-clear-default-input-values/</guid>
</item>
<item>
<title>(jQuery) jQuery Hide Labels and Use Them as Values</title>
<link>http://snipplr.com/view/15358/jquery-hide-labels-and-use-them-as-values/</link>
<description><![CDATA[ <p>This function loops through a result set of inputs and for each result, takes the value of any associated label, applies it as the value of the result, and hides the label.  Assumes that any label with the class "error" is not counted (I use labels with the error class for errors...).</p> ]]></description>
<pubDate>Wed, 27 May 2009 13:33:32 GMT</pubDate>
<guid>http://snipplr.com/view/15358/jquery-hide-labels-and-use-them-as-values/</guid>
</item>
</channel>
</rss>
