<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - jatkins</title>
<link>http://snipplr.com/users/jatkins</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 21:06:11 GMT</pubDate>
<item>
<title>(JavaScript) Find which quadrant an angle is in</title>
<link>http://snipplr.com/view/71033/find-which-quadrant-an-angle-is-in/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Fri, 03 May 2013 19:31:29 GMT</pubDate>
<guid>http://snipplr.com/view/71033/find-which-quadrant-an-angle-is-in/</guid>
</item>
<item>
<title>(JavaScript) Keep angle in range (0-360)</title>
<link>http://snipplr.com/view/71020/keep-angle-in-range-0360/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Thu, 02 May 2013 17:53:36 GMT</pubDate>
<guid>http://snipplr.com/view/71020/keep-angle-in-range-0360/</guid>
</item>
<item>
<title>(JavaScript) Generate unique ID</title>
<link>http://snipplr.com/view/68597/generate-unique-id/</link>
<description><![CDATA[ <p>Not necessarily perfectly unique, but the chances of two identical IDs being generated are insanely remote (so not really a GUID generator, but looks like it). You'll need to clear it up -- I pulled it out of an object containing miscellaneous functions.</p> ]]></description>
<pubDate>Sat, 17 Nov 2012 05:53:52 GMT</pubDate>
<guid>http://snipplr.com/view/68597/generate-unique-id/</guid>
</item>
<item>
<title>(JavaScript) Search autocomplete example</title>
<link>http://snipplr.com/view/66121/search-autocomplete-example/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Fri, 13 Jul 2012 11:05:32 GMT</pubDate>
<guid>http://snipplr.com/view/66121/search-autocomplete-example/</guid>
</item>
<item>
<title>(JavaScript) JavaScript/XHTML/CSS pie charts</title>
<link>http://snipplr.com/view/65662/javascriptxhtmlcss-pie-charts/</link>
<description><![CDATA[ <p>Released into the public domain. Not really intended for real-world use (it's a clumsy, inefficient, unaesthetic solution--but it is kind of neat).</p> ]]></description>
<pubDate>Sat, 16 Jun 2012 08:43:06 GMT</pubDate>
<guid>http://snipplr.com/view/65662/javascriptxhtmlcss-pie-charts/</guid>
</item>
<item>
<title>(JavaScript) 2D Graphics Library (work in progress)</title>
<link>http://snipplr.com/view/64991/2d-graphics-library-work-in-progress/</link>
<description><![CDATA[ <p>Released into the public domain</p> ]]></description>
<pubDate>Tue, 22 May 2012 09:14:02 GMT</pubDate>
<guid>http://snipplr.com/view/64991/2d-graphics-library-work-in-progress/</guid>
</item>
<item>
<title>(JavaScript) JavaScript Binary Search</title>
<link>http://snipplr.com/view/64757/javascript-binary-search/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Fri, 27 Apr 2012 07:18:43 GMT</pubDate>
<guid>http://snipplr.com/view/64757/javascript-binary-search/</guid>
</item>
<item>
<title>(JavaScript) Increment/decrement input fields with values that have units</title>
<link>http://snipplr.com/view/64331/incrementdecrement-input-fields-with-values-that-have-units/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Tue, 03 Apr 2012 20:37:27 GMT</pubDate>
<guid>http://snipplr.com/view/64331/incrementdecrement-input-fields-with-values-that-have-units/</guid>
</item>
<item>
<title>(PHP) Pie/Bar Chart Generator</title>
<link>http://snipplr.com/view/63709/piebar-chart-generator/</link>
<description><![CDATA[ <p>Released under the MIT license by Josh Atkins.
Requires [Antialiased filled Arcs/Ellipses for PHP](http://mierendo.com/software/antialiased_arcs/) by Ulrich Mierendorff (also under the MIT license).</p> ]]></description>
<pubDate>Sun, 04 Mar 2012 16:59:52 GMT</pubDate>
<guid>http://snipplr.com/view/63709/piebar-chart-generator/</guid>
</item>
<item>
<title>(JavaScript) getElementsFromClassName</title>
<link>http://snipplr.com/view/60653/getelementsfromclassname/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Wed, 09 Nov 2011 10:07:09 GMT</pubDate>
<guid>http://snipplr.com/view/60653/getelementsfromclassname/</guid>
</item>
<item>
<title>(JavaScript) JavaScript String Trim Function</title>
<link>http://snipplr.com/view/60590/javascript-string-trim-function/</link>
<description><![CDATA[ <p>Released into the public domain. Returns a string with leading and trailing spaces from `stringToTrim`.</p> ]]></description>
<pubDate>Mon, 07 Nov 2011 04:59:28 GMT</pubDate>
<guid>http://snipplr.com/view/60590/javascript-string-trim-function/</guid>
</item>
<item>
<title>(JavaScript) Calendar Generator (JavaScript)</title>
<link>http://snipplr.com/view/60199/calendar-generator-javascript/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Wed, 26 Oct 2011 10:20:49 GMT</pubDate>
<guid>http://snipplr.com/view/60199/calendar-generator-javascript/</guid>
</item>
<item>
<title>(PHP) Calendar Generator (PHP)</title>
<link>http://snipplr.com/view/60198/calendar-generator-php/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Wed, 26 Oct 2011 09:43:13 GMT</pubDate>
<guid>http://snipplr.com/view/60198/calendar-generator-php/</guid>
</item>
<item>
<title>(Pascal) Pascal Word Count and Capitalization Sample Program</title>
<link>http://snipplr.com/view/59299/pascal-word-count-and-capitalization-sample-program/</link>
<description><![CDATA[ <p>Public domain.</p> ]]></description>
<pubDate>Fri, 30 Sep 2011 23:42:21 GMT</pubDate>
<guid>http://snipplr.com/view/59299/pascal-word-count-and-capitalization-sample-program/</guid>
</item>
<item>
<title>(JavaScript) Get filename from path</title>
<link>http://snipplr.com/view/57709/get-filename-from-path/</link>
<description><![CDATA[ <p>Released into the public domain. Useful for getting just the filename (and extension) from the `value` of an ``.</p> ]]></description>
<pubDate>Wed, 10 Aug 2011 03:11:54 GMT</pubDate>
<guid>http://snipplr.com/view/57709/get-filename-from-path/</guid>
</item>
<item>
<title>(JavaScript) substr (works with negative length values)</title>
<link>http://snipplr.com/view/56951/substr-works-with-negative-length-values/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Thu, 21 Jul 2011 06:33:13 GMT</pubDate>
<guid>http://snipplr.com/view/56951/substr-works-with-negative-length-values/</guid>
</item>
<item>
<title>(JavaScript) reverseString</title>
<link>http://snipplr.com/view/56905/reversestring/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Wed, 20 Jul 2011 19:17:24 GMT</pubDate>
<guid>http://snipplr.com/view/56905/reversestring/</guid>
</item>
<item>
<title>(JavaScript) previousElement and nextElement</title>
<link>http://snipplr.com/view/56845/previouselement-and-nextelement/</link>
<description><![CDATA[ <p>Released into the public domain. I haven't tested these (realized I didn't need them for what I was trying to do), but they should work. **Bug fixed 7/19/2011.**</p> ]]></description>
<pubDate>Tue, 19 Jul 2011 07:24:59 GMT</pubDate>
<guid>http://snipplr.com/view/56845/previouselement-and-nextelement/</guid>
</item>
<item>
<title>(PHP) Basic text diff</title>
<link>http://snipplr.com/view/55183/basic-text-diff/</link>
<description><![CDATA[ <p>Released into the public domain. Can be a little buggy, can break up HTML (you may wish to remove HTML before running text through this function).</p> ]]></description>
<pubDate>Mon, 13 Jun 2011 00:34:46 GMT</pubDate>
<guid>http://snipplr.com/view/55183/basic-text-diff/</guid>
</item>
<item>
<title>(PHP) Find the parent key of a value in a two-dimensional array</title>
<link>http://snipplr.com/view/54937/find-the-parent-key-of-a-value-in-a-twodimensional-array/</link>
<description><![CDATA[ <p>Released to the public domain. Example: you have an array, `$seasons = array('Summer' => array('June', 'July', 'August'), 'Autumn' => array('September', 'October', 'November'), 'Winter' => array('December', 'January', 'February'), 'Spring' => array('March', 'April', 'May'));`. Running `print_r(find_keys_based_on_value('October', $seasons));` will is equivalent to `print_r(array('Autumn' => array('September', 'October', 'November');`. _**By default, the script will keep searching until it reaches the end of the array.**_ To stop at the first match, call with `$first_only` set to `true`. To return only the key name(s), call with `$key_names_only` set to `true`.</p> ]]></description>
<pubDate>Tue, 07 Jun 2011 02:06:05 GMT</pubDate>
<guid>http://snipplr.com/view/54937/find-the-parent-key-of-a-value-in-a-twodimensional-array/</guid>
</item>
</channel>
</rss>