<?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, 10 Jun 2026 05:20:27 +0000</lastBuildDate>
    <item>
      <title>(PHP) CSS Grid Generator - brettbergeron</title>
      <link>https://snipplr.com/view/19394/css-grid-generator</link>
      <description>&lt;p&gt;Code explains itself. I plan to do a lot more work on it - just wanted to throw it up here for a little sharing. Feel free to take it to the next level.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Sep 2009 10:24:43 UTC</pubDate>
      <guid>https://snipplr.com/view/19394/css-grid-generator</guid>
    </item>
    <item>
      <title>(PHP) URL Sharing Helper - brettbergeron</title>
      <link>https://snipplr.com/view/18914/url-sharing-helper</link>
      <description>&lt;p&gt;This is a quick &amp; dirty helper for pumping out those annoying little link sharing URLS. I've kept it simple, so all it does is return a URL formatted for a particular service.&#13;
&#13;
To use it, just pass a string of the service name to the helper followed by the title. This could definitely be taken to the next level by adding a parameter for the URL, but my needs were incompatible with such a feature.&lt;/p&gt;</description>
      <pubDate>Thu, 27 Aug 2009 13:23:02 UTC</pubDate>
      <guid>https://snipplr.com/view/18914/url-sharing-helper</guid>
    </item>
    <item>
      <title>(PHP) Google Analytics Helper for CodeIgniter - brettbergeron</title>
      <link>https://snipplr.com/view/18847/google-analytics-helper-for-codeigniter</link>
      <description>&lt;p&gt;Below are two functions I've been using to make event tracking a little easier in CodeIgniter.&#13;
&#13;
Two functions are available, google_analytics() &amp; track_event().&#13;
&#13;
google_analytics() takes one argument and uses it as the UA code for your tracking profile. track_event has two required parameters, $category and $event. The other two items are optional and won't be inserted unless specified.&#13;
&#13;
Usage is pretty straight-forward:&#13;
&#13;
&lt;?=&gt;&#13;
&#13;
&lt;?=&gt;&#13;
&lt;?=&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 26 Aug 2009 01:09:49 UTC</pubDate>
      <guid>https://snipplr.com/view/18847/google-analytics-helper-for-codeigniter</guid>
    </item>
    <item>
      <title>(PHP) Asset Helper for CodeIgniter - brettbergeron</title>
      <link>https://snipplr.com/view/18846/asset-helper-for-codeigniter</link>
      <description>&lt;p&gt;The below code helps you move your site assets (images, css, javascript) to a public folder inside the application directory of CodeIgniter.&#13;
&#13;
One thing you'll need to do is define ASSETPATH to be the path to the location of your public items. For myself, I set this to system/application/&lt;subdomain&gt;/public/.&#13;
&#13;
See some of my other snippets to get some background on the subdomain part of that path.&lt;/p&gt;</description>
      <pubDate>Wed, 26 Aug 2009 01:04:05 UTC</pubDate>
      <guid>https://snipplr.com/view/18846/asset-helper-for-codeigniter</guid>
    </item>
    <item>
      <title>(Ruby) Rake Task for Compiling Less Sheets in Rails Directory - brettbergeron</title>
      <link>https://snipplr.com/view/18800/rake-task-for-compiling-less-sheets-in-rails-directory</link>
      <description>&lt;p&gt;Code for a Rake task that allows compiles all LESS stylesheets (.less) contained within a single directory.&lt;/p&gt;</description>
      <pubDate>Mon, 24 Aug 2009 18:48:43 UTC</pubDate>
      <guid>https://snipplr.com/view/18800/rake-task-for-compiling-less-sheets-in-rails-directory</guid>
    </item>
    <item>
      <title>(PHP) Call CodeIgniter Application Based on Subdomain - brettbergeron</title>
      <link>https://snipplr.com/view/18613/call-codeigniter-application-based-on-subdomain</link>
      <description>&lt;p&gt;I recently found the need to run multiple CodeIgniter applications inside of a single codebase for development &amp; test purposes. So, I rewrote a few lines of the primary index file (/index.php) to automatically route URLs like subdomain.domain.com to the CodeIgniter application within /system/application/subdomain.&#13;
&#13;
As a catch-all, the snippet will route the "www" subdomain (and requests with no subdomain) to application/live.&#13;
&#13;
This is a nice &amp; tidy way to give your development, test and live versions of a site their own unique subdomains. Works great when passing the URLs to clients for testing &amp; approval.&lt;/p&gt;</description>
      <pubDate>Thu, 20 Aug 2009 13:33:46 UTC</pubDate>
      <guid>https://snipplr.com/view/18613/call-codeigniter-application-based-on-subdomain</guid>
    </item>
  </channel>
</rss>
