<?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 22:12:44 +0000</lastBuildDate>
    <item>
      <title>(PHP) PHP: Simple MyTweets Function - Sverri</title>
      <link>https://snipplr.com/view/61799/php-simple-mytweets-function</link>
      <description>&lt;p&gt;A simple PHP function for fetching tweets. Just provide your Twitter screen name and how many tweets you want and that is it. The function returns a simplified result set because you rarely need all the stuff that the Twitter API throws your way. If you need everything then just put FALSE as the last argument.&lt;/p&gt;</description>
      <pubDate>Sun, 11 Dec 2011 01:03:34 UTC</pubDate>
      <guid>https://snipplr.com/view/61799/php-simple-mytweets-function</guid>
    </item>
    <item>
      <title>(PHP) Longhand HEX colour to shorthand equivalent - Sverri</title>
      <link>https://snipplr.com/view/49294/longhand-hex-colour-to-shorthand-equivalent</link>
      <description>&lt;p&gt;Turn a HEX colour value into its 3 character equivalent.&lt;/p&gt;</description>
      <pubDate>Sun, 20 Feb 2011 23:07:16 UTC</pubDate>
      <guid>https://snipplr.com/view/49294/longhand-hex-colour-to-shorthand-equivalent</guid>
    </item>
    <item>
      <title>(Python) Extract Urls From Website - Sverri</title>
      <link>https://snipplr.com/view/42413/extract-urls-from-website</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 16 Oct 2010 23:09:16 UTC</pubDate>
      <guid>https://snipplr.com/view/42413/extract-urls-from-website</guid>
    </item>
    <item>
      <title>(PHP) Combine and minify CSS using get query string - Sverri</title>
      <link>https://snipplr.com/view/39897/combine-and-minify-css-using-get-query-string</link>
      <description>&lt;p&gt;The code is not particularly pretty but it does the job.&#13;
&#13;
If you call this file css.php you can call it like this:&#13;
&#13;
css.php?files=reset,style,iefix&amp;minify=yes&lt;/p&gt;</description>
      <pubDate>Thu, 02 Sep 2010 16:57:40 UTC</pubDate>
      <guid>https://snipplr.com/view/39897/combine-and-minify-css-using-get-query-string</guid>
    </item>
    <item>
      <title>(Java) Nim (play against PC, without winning algorithm) - Sverri</title>
      <link>https://snipplr.com/view/39702/nim-play-against-pc-without-winning-algorithm</link>
      <description>&lt;p&gt;nim&lt;/p&gt;</description>
      <pubDate>Mon, 30 Aug 2010 16:25:58 UTC</pubDate>
      <guid>https://snipplr.com/view/39702/nim-play-against-pc-without-winning-algorithm</guid>
    </item>
    <item>
      <title>(Java) PC Guesses Remembered Number - Sverri</title>
      <link>https://snipplr.com/view/39700/pc-guesses-remembered-number</link>
      <description>&lt;p&gt;The player selects a range from 0 to n, remembers a number in this range and then the script asks the player a question trying to guess the number. The PC will always guess the correct number.\r\n\r\nI could have added more varied questions, but the task did not state it had to be interesting, and being a lazy creature I took the path of least rÃ©sistance.&lt;/p&gt;</description>
      <pubDate>Mon, 30 Aug 2010 16:05:35 UTC</pubDate>
      <guid>https://snipplr.com/view/39700/pc-guesses-remembered-number</guid>
    </item>
    <item>
      <title>(PHP) Bubble sort integers - Sverri</title>
      <link>https://snipplr.com/view/39487/bubble-sort-integers</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 25 Aug 2010 02:40:28 UTC</pubDate>
      <guid>https://snipplr.com/view/39487/bubble-sort-integers</guid>
    </item>
    <item>
      <title>(PHP) Simple CSV Reader - Sverri</title>
      <link>https://snipplr.com/view/39165/simple-csv-reader</link>
      <description>&lt;p&gt;See code comments for more details.&lt;/p&gt;</description>
      <pubDate>Tue, 17 Aug 2010 14:31:09 UTC</pubDate>
      <guid>https://snipplr.com/view/39165/simple-csv-reader</guid>
    </item>
    <item>
      <title>(PHP) Trim characters - Sverri</title>
      <link>https://snipplr.com/view/38921/trim-characters</link>
      <description>&lt;p&gt;Looks for $chars in $subject and removes any preceding and succeeding whitespace from the provided characters. It works much like trim(), except it trims characters instead of the string itself.&lt;/p&gt;</description>
      <pubDate>Wed, 11 Aug 2010 17:27:24 UTC</pubDate>
      <guid>https://snipplr.com/view/38921/trim-characters</guid>
    </item>
    <item>
      <title>(PHP) Minify and combine CSS files - Sverri</title>
      <link>https://snipplr.com/view/38918/minify-and-combine-css-files</link>
      <description>&lt;p&gt;Minify and combine CSS files. Instructions in code.&lt;/p&gt;</description>
      <pubDate>Wed, 11 Aug 2010 16:36:01 UTC</pubDate>
      <guid>https://snipplr.com/view/38918/minify-and-combine-css-files</guid>
    </item>
    <item>
      <title>(PHP) Debug a variable - Sverri</title>
      <link>https://snipplr.com/view/38663/debug-a-variable</link>
      <description>&lt;p&gt;When working in PHP I sometimes want to know exactly what is in a variable. This is easy enough to find out, but having this function around it is even easier, as it includes the HTML pre tag making it easier to read, and it allows you to choose how it should be debugged (defaults to using print_r()).&lt;/p&gt;</description>
      <pubDate>Sat, 07 Aug 2010 10:06:59 UTC</pubDate>
      <guid>https://snipplr.com/view/38663/debug-a-variable</guid>
    </item>
    <item>
      <title>(PHP) Turn input string into formatted HTML - Sverri</title>
      <link>https://snipplr.com/view/38358/turn-input-string-into-formatted-html</link>
      <description>&lt;p&gt;Takes a string (from textarea, et alii) and turns it into formatted HTML.\\\\r\\\\n\\\\r\\\\nLines of text are turned into paragraphs, unless they start with \\\\\\\"+\\\\\\\" (headline); \\\\\\\"-\\\\\\\" (unordered list); or \\\\\\\"n.\\\\\\\" (ordered list).&lt;/p&gt;</description>
      <pubDate>Wed, 04 Aug 2010 19:15:26 UTC</pubDate>
      <guid>https://snipplr.com/view/38358/turn-input-string-into-formatted-html</guid>
    </item>
    <item>
      <title>(jQuery) Visualize the \"maxlength\" attribute using a string length counter - Sverri</title>
      <link>https://snipplr.com/view/38043/visualize-the-maxlength-attribute-using-a-string-length-counter</link>
      <description>&lt;p&gt;A little snippet that visualizes the \"maxlength\" attribute, used on the HTML \"input\" and \"textarea\" elements.\r\n\r\nThe snippet is set up in such a way as to give you easy control over...\r\n\r\n1. formatting of the counter\r\n2. the HTML tag where the counter is put\r\n3. where in the document you want the counter to be displayed\r\n\r\nThe snippet is quite self-explanatory, but I have commented on basically everything. Read the comments for further help.&lt;/p&gt;</description>
      <pubDate>Thu, 29 Jul 2010 20:40:24 UTC</pubDate>
      <guid>https://snipplr.com/view/38043/visualize-the-maxlength-attribute-using-a-string-length-counter</guid>
    </item>
    <item>
      <title>(PHP) Function \"lcfirst\" for PHP - Sverri</title>
      <link>https://snipplr.com/view/38025/function-lcfirst-for-php</link>
      <description>&lt;p&gt;Adds the function "lcfirst" if it does not exist (it was first added in PHP 5.3.0) while its counterpart, "ucfirst" was added in PHP 4.&lt;/p&gt;</description>
      <pubDate>Thu, 29 Jul 2010 13:05:47 UTC</pubDate>
      <guid>https://snipplr.com/view/38025/function-lcfirst-for-php</guid>
    </item>
    <item>
      <title>(PHP) Camel Case a string - Sverri</title>
      <link>https://snipplr.com/view/37979/camel-case-a-string</link>
      <description>&lt;p&gt;Turn a string into camelcase. You can optionally set a custom regex delimiter.&lt;/p&gt;</description>
      <pubDate>Wed, 28 Jul 2010 07:37:16 UTC</pubDate>
      <guid>https://snipplr.com/view/37979/camel-case-a-string</guid>
    </item>
    <item>
      <title>(JavaScript) HEX to RGB Converter - Sverri</title>
      <link>https://snipplr.com/view/37974/hex-to-rgb-converter</link>
      <description>&lt;p&gt;Converts and returns the RGB equivalent of a HEX value. The RGB values are returned as an object, with the members "red", "green" and "blue". See the example in code snippet if you do not know how to use the function.&lt;/p&gt;</description>
      <pubDate>Wed, 28 Jul 2010 06:26:55 UTC</pubDate>
      <guid>https://snipplr.com/view/37974/hex-to-rgb-converter</guid>
    </item>
    <item>
      <title>(JavaScript) RGB to HEX converter - Sverri</title>
      <link>https://snipplr.com/view/37973/rgb-to-hex-converter</link>
      <description>&lt;p&gt;Converts and returns the HEX equivalent of an RGB value. If it is possible the HEX shorthand will be returned (ie. #abc instead of #aabbcc).&lt;/p&gt;</description>
      <pubDate>Wed, 28 Jul 2010 06:20:32 UTC</pubDate>
      <guid>https://snipplr.com/view/37973/rgb-to-hex-converter</guid>
    </item>
  </channel>
</rss>
