<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/function</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 24 Jul 2008 08:11:40 GMT</pubDate>
<item>
<title>(ActionScript 3) AS3: Create a grid of bottons - taboularasa</title>
<link>http://snipplr.com/view/7366/as3-create-a-grid-of-bottons/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 17 Jul 2008 15:31:17 GMT</pubDate>
<guid>http://snipplr.com/view/7366/as3-create-a-grid-of-bottons/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Random Range - taboularasa</title>
<link>http://snipplr.com/view/7326/as3-random-range/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 16 Jul 2008 01:36:52 GMT</pubDate>
<guid>http://snipplr.com/view/7326/as3-random-range/</guid>
</item>
<item>
<title>(PHP) Count sentences in a string - evanwalsh</title>
<link>http://snipplr.com/view/6910/count-sentences-in-a-string/</link>
<description><![CDATA[ <p>This will count sentences that end in . or ? or ! and have a space after them.</p> ]]></description>
<pubDate>Wed, 25 Jun 2008 11:35:01 GMT</pubDate>
<guid>http://snipplr.com/view/6910/count-sentences-in-a-string/</guid>
</item>
<item>
<title>(ASP) Make YouTube Embed HTML Validate - neal_grosskopf</title>
<link>http://snipplr.com/view/6871/make-youtube-embed-html-validate/</link>
<description><![CDATA[ <p>YouTube offers a method for users and developers to embed video on their web pages. Unfortunately the code that they use doesn't validate. Use this function to make YouTube's embed code validate.</p> ]]></description>
<pubDate>Tue, 24 Jun 2008 07:55:27 GMT</pubDate>
<guid>http://snipplr.com/view/6871/make-youtube-embed-html-validate/</guid>
</item>
<item>
<title>(ASP) Getting Full URL/Path with ASP - neal_grosskopf</title>
<link>http://snipplr.com/view/6618/getting-full-urlpath-with-asp/</link>
<description><![CDATA[ <p>One thing that always bothered me about Classic ASP is that there isn't an easy way to get the entire url. So I devised a function that will get the full path
including the query string.</p> ]]></description>
<pubDate>Sat, 07 Jun 2008 11:04:46 GMT</pubDate>
<guid>http://snipplr.com/view/6618/getting-full-urlpath-with-asp/</guid>
</item>
<item>
<title>(PHP) Limited Text Function - PHP - skywalker</title>
<link>http://snipplr.com/view/6229/limited-text-function--php/</link>
<description><![CDATA[ <p>Another way of showing long text to end user...</p> ]]></description>
<pubDate>Thu, 15 May 2008 02:09:15 GMT</pubDate>
<guid>http://snipplr.com/view/6229/limited-text-function--php/</guid>
</item>
<item>
<title>(PHP) simple Body ID Function - iTony</title>
<link>http://snipplr.com/view/6224/simple-body-id-function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 14 May 2008 14:05:08 GMT</pubDate>
<guid>http://snipplr.com/view/6224/simple-body-id-function/</guid>
</item>
<item>
<title>(PHP) PHP JavaScript ROT13 Encoder Function - koncept</title>
<link>http://snipplr.com/view/6037/php-javascript-rot13-encoder-function/</link>
<description><![CDATA[ <p>This function was respectfully borrowed from TextMate and ported to PHP. Thanks to Allan Odgaard for the function! ;)

Obviously, this can be extended a lot more, but I wanted to keep it as simple as possible for the example.</p> ]]></description>
<pubDate>Tue, 29 Apr 2008 01:44:41 GMT</pubDate>
<guid>http://snipplr.com/view/6037/php-javascript-rot13-encoder-function/</guid>
</item>
<item>
<title>(Python) Python: elapsed_time (human readable time span given total seconds) - wbowers</title>
<link>http://snipplr.com/view/5713/python-elapsedtime-human-readable-time-span-given-total-seconds/</link>
<description><![CDATA[ <p>This function takes an amount of time in seconds and returns a human readable time span (i.e.,  4h 5m 23s). The suffixes (d for day, h for hour) are configurable to whatever you want (like day, hour, week, etc). Read the comments within the code for more detail.</p> ]]></description>
<pubDate>Sat, 05 Apr 2008 17:35:31 GMT</pubDate>
<guid>http://snipplr.com/view/5713/python-elapsedtime-human-readable-time-span-given-total-seconds/</guid>
</item>
<item>
<title>(ActionScript) Function: Random value between two numbers - Wiederkehr</title>
<link>http://snipplr.com/view/5651/function-random-value-between-two-numbers/</link>
<description><![CDATA[ <p>Small function that returns a random rounded value between two given numbers.</p> ]]></description>
<pubDate>Wed, 02 Apr 2008 05:21:07 GMT</pubDate>
<guid>http://snipplr.com/view/5651/function-random-value-between-two-numbers/</guid>
</item>
<item>
<title>(ASP) Checking Plurals With ASP - A Simple Check Plural Function - neal_grosskopf</title>
<link>http://snipplr.com/view/5521/checking-plurals-with-asp--a-simple-check-plural-function/</link>
<description><![CDATA[ <p>I notice that a lot of database driven websites make easy mistakes by not checking for plural words. An example might be "2 vote" or "1 votes". Here is an example of a function using ASP to check for plurals.</p> ]]></description>
<pubDate>Fri, 21 Mar 2008 15:37:25 GMT</pubDate>
<guid>http://snipplr.com/view/5521/checking-plurals-with-asp--a-simple-check-plural-function/</guid>
</item>
<item>
<title>(PHP) function - delay</title>
<link>http://snipplr.com/view/5427/function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 14 Mar 2008 11:47:21 GMT</pubDate>
<guid>http://snipplr.com/view/5427/function/</guid>
</item>
<item>
<title>(JavaScript) Javascript image preload object - hellion</title>
<link>http://snipplr.com/view/5366/javascript-image-preload-object/</link>
<description><![CDATA[ <p>How to use:

1) < script type="text/javascript" src="path-to-file.js"...

2) < body onload="oHW.preMontar('img1_on.jpg','img2_on.jpg','img3_on.jpg');"...

3) < a href="#" onmouseout="oHW.Restore()" onmouseover="oHW.Cambiar('mnind','img1_on.jpg')"

Credentials:

Image Rollovers | flipping images with JavaScript onMouseOver || HTMLSource ]
http://www.yourhtmlsource.com/images/rollovers.html#theimageflip</p> ]]></description>
<pubDate>Tue, 11 Mar 2008 06:40:43 GMT</pubDate>
<guid>http://snipplr.com/view/5366/javascript-image-preload-object/</guid>
</item>
<item>
<title>(PHP) Recursive chmod in PHP - Tenzer</title>
<link>http://snipplr.com/view/5350/recursive-chmod-in-php/</link>
<description><![CDATA[ <p>A small function I made to chmod directories and files recursively, with different permissions.</p> ]]></description>
<pubDate>Mon, 10 Mar 2008 09:55:40 GMT</pubDate>
<guid>http://snipplr.com/view/5350/recursive-chmod-in-php/</guid>
</item>
<item>
<title>(JavaScript) Elapsed time string from time in seconds - wbowers</title>
<link>http://snipplr.com/view/5327/elapsed-time-string-from-time-in-seconds/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 09 Mar 2008 00:51:15 GMT</pubDate>
<guid>http://snipplr.com/view/5327/elapsed-time-string-from-time-in-seconds/</guid>
</item>
<item>
<title>(PHP) check html compliance - fris</title>
<link>http://snipplr.com/view/5320/check-html-compliance/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 08 Mar 2008 11:54:35 GMT</pubDate>
<guid>http://snipplr.com/view/5320/check-html-compliance/</guid>
</item>
<item>
<title>(JavaScript) Function invocation and 'this' Context Example - 1man</title>
<link>http://snipplr.com/view/5280/function-invocation-and-this-context-example/</link>
<description><![CDATA[ <p>Quick example to show how 'this' depends on how the function in which you called it in was being invoked. From jQuery in Action.</p> ]]></description>
<pubDate>Wed, 05 Mar 2008 17:40:56 GMT</pubDate>
<guid>http://snipplr.com/view/5280/function-invocation-and-this-context-example/</guid>
</item>
<item>
<title>(PHP) PHP - is_valid_email - wbowers</title>
<link>http://snipplr.com/view/5226/php--isvalidemail/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 28 Feb 2008 05:00:54 GMT</pubDate>
<guid>http://snipplr.com/view/5226/php--isvalidemail/</guid>
</item>
<item>
<title>(PHP) Smart Quoting - AgentPhoenix</title>
<link>http://snipplr.com/view/4758/smart-quoting/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 24 Jan 2008 10:01:56 GMT</pubDate>
<guid>http://snipplr.com/view/4758/smart-quoting/</guid>
</item>
<item>
<title>(JavaScript) adding .first() ability to jquery chain - natalie</title>
<link>http://snipplr.com/view/4589/adding-first-ability-to-jquery-chain/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 15 Jan 2008 06:27:33 GMT</pubDate>
<guid>http://snipplr.com/view/4589/adding-first-ability-to-jquery-chain/</guid>
</item>
</channel>
</rss>