<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 17 Jun 2026 09:16:09 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) Return Age from Date of Birth - StevenW721</title>
      <link>https://snipplr.com/view/66067/return-age-from-date-of-birth</link>
      <description>&lt;p&gt;Calculates the amount of time since the date specified with yr, mon, and day. The parameter "countunit" can be "years", "months", or "days" and is the duration between the specified day and today in the selected denomination. The "decimals" parameter allows you to set a decimal place to round to for days and months return values. Rounding is also meant for days and months and can be "roundup" or "rounddown" based solely on the properties of Math.ceil and math.floor respectively.&#13;
Sample - displayage(1997, 11, 24, "years", 0, "rounddown")&lt;/p&gt;</description>
      <pubDate>Wed, 11 Jul 2012 07:47:51 UTC</pubDate>
      <guid>https://snipplr.com/view/66067/return-age-from-date-of-birth</guid>
    </item>
    <item>
      <title>(JavaScript) Resize iframe height based on it's content - StevenW721</title>
      <link>https://snipplr.com/view/38901/resize-iframe-height-based-on-its-content</link>
      <description>&lt;p&gt;Sometimes iframes are unavoidable, and in those cases you usually don't want it to be apparent there is one. This will find the height of the iframed contents and resize the iframe accordingly, making it appear to be part of the page. Almost positive there's a better way to do this but this worked the most consistently across browsers so I'm saving it here. Suggestions welcome, especially on methods to do the same in jQuery.&lt;/p&gt;</description>
      <pubDate>Wed, 11 Aug 2010 06:35:40 UTC</pubDate>
      <guid>https://snipplr.com/view/38901/resize-iframe-height-based-on-its-content</guid>
    </item>
  </channel>
</rss>
