<?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>Tue, 09 Jun 2026 21:29:11 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) To Relative Time - mike_fowler</title>
      <link>https://snipplr.com/view/59779/to-relative-time</link>
      <description>&lt;p&gt;* Returns a description of this past date in relative terms.&#13;
 * Takes an optional parameter (default: 0) setting the threshold in ms which&#13;
 * is considered "Just now".&#13;
 *&#13;
 * Examples, where new Date().toString() == "Mon Nov 23 2009 17:36:51 GMT-0500 (EST)":&#13;
 *&#13;
 * new Date().toRelativeTime()&#13;
 * --&gt; 'Just now'&#13;
 *&#13;
 * new Date("Nov 21, 2009").toRelativeTime()&#13;
 * --&gt; '2 days ago'&#13;
 *&#13;
 * // One second ago&#13;
 * new Date("Nov 23 2009 17:36:50 GMT-0500 (EST)").toRelativeTime()&#13;
 * --&gt; '1 second ago'&#13;
 *&#13;
 * // One second ago, now setting a now_threshold to 5 seconds&#13;
 * new Date("Nov 23 2009 17:36:50 GMT-0500 (EST)").toRelativeTime(5000)&#13;
 * --&gt; 'Just now'&#13;
 *&#13;
 */&lt;/p&gt;</description>
      <pubDate>Fri, 14 Oct 2011 23:16:27 UTC</pubDate>
      <guid>https://snipplr.com/view/59779/to-relative-time</guid>
    </item>
    <item>
      <title>(JavaScript) Generating a sin wave - mike_fowler</title>
      <link>https://snipplr.com/view/58394/generating-a-sin-wave</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 02 Sep 2011 13:01:01 UTC</pubDate>
      <guid>https://snipplr.com/view/58394/generating-a-sin-wave</guid>
    </item>
    <item>
      <title>(JavaScript) Javascript Random Color - mike_fowler</title>
      <link>https://snipplr.com/view/48067/javascript-random-color</link>
      <description>&lt;p&gt;Generates random hex values ("You know, these guys: #0afec0, #c9f2d0, #9b923e")&lt;/p&gt;</description>
      <pubDate>Sat, 29 Jan 2011 00:48:52 UTC</pubDate>
      <guid>https://snipplr.com/view/48067/javascript-random-color</guid>
    </item>
  </channel>
</rss>
