<?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:46:44 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) Javascript object template - rickygri</title>
      <link>https://snipplr.com/view/75379/javascript-object-template</link>
      <description>&lt;p&gt;A template for a javascript object with a object.create shiv to condense into object prototypes&lt;/p&gt;</description>
      <pubDate>Sun, 20 Jul 2014 04:15:47 UTC</pubDate>
      <guid>https://snipplr.com/view/75379/javascript-object-template</guid>
    </item>
    <item>
      <title>(JavaScript) OOP Javascript Template with constructor and inheritance - rickygri</title>
      <link>https://snipplr.com/view/74307/oop-javascript-template-with-constructor-and-inheritance</link>
      <description>&lt;p&gt;From @blixt http://stackoverflow.com/users/119081/blixt&#13;
&#13;
As you can see, the classes correctly interact with each other (they share the static id from MyClass, the announce method uses the correct get_name method, etc.)&#13;
&#13;
One thing to note is the need to shadow instance properties. You can actually make the inherit function go through all instance properties (using hasOwnProperty) that are functions, and automagically add a super_&lt;method&gt; property. This would let you call this.super_get_name() instead of storing it in a temporary value and calling it bound using call.&#13;
&#13;
For methods on the prototype you don't need to worry about the above though, if you want to access the super class' prototype methods, you can just call this.constructor.super.prototype.methodName. If you want to make it less verbose you can of course add convenience properties. :)&lt;/p&gt;</description>
      <pubDate>Wed, 23 Apr 2014 19:01:55 UTC</pubDate>
      <guid>https://snipplr.com/view/74307/oop-javascript-template-with-constructor-and-inheritance</guid>
    </item>
    <item>
      <title>(JavaScript) jQuery Plugin template - rickygri</title>
      <link>https://snipplr.com/view/72898/jquery-plugin-template</link>
      <description>&lt;p&gt;Uses the object prototype to extend data. Instantiate as an object and use as specified below (bottom of the code)&lt;/p&gt;</description>
      <pubDate>Fri, 15 Nov 2013 00:13:53 UTC</pubDate>
      <guid>https://snipplr.com/view/72898/jquery-plugin-template</guid>
    </item>
    <item>
      <title>(JavaScript) Callback for when images have loaded in an AJAX call - rickygri</title>
      <link>https://snipplr.com/view/72065/callback-for-when-images-have-loaded-in-an-ajax-call</link>
      <description>&lt;p&gt;More info: http://stackoverflow.com/questions/10908562/is-there-something-similar-to-window-load-for-executing-a-function-after&lt;/p&gt;</description>
      <pubDate>Wed, 07 Aug 2013 21:19:25 UTC</pubDate>
      <guid>https://snipplr.com/view/72065/callback-for-when-images-have-loaded-in-an-ajax-call</guid>
    </item>
    <item>
      <title>(JavaScript) Grunt boilerplate - rickygri</title>
      <link>https://snipplr.com/view/71724/grunt-boilerplate</link>
      <description>&lt;p&gt;Copypasta boilerplate for command prompt node install&lt;/p&gt;</description>
      <pubDate>Fri, 05 Jul 2013 02:07:22 UTC</pubDate>
      <guid>https://snipplr.com/view/71724/grunt-boilerplate</guid>
    </item>
    <item>
      <title>(PHP) If file exists function - server-side - rickygri</title>
      <link>https://snipplr.com/view/71714/if-file-exists-function--serverside</link>
      <description>&lt;p&gt;This function can be used to check if a file exists using the HTTP header response. Example use, when looping through cached JSON objects (instagram API, etc.)&lt;/p&gt;</description>
      <pubDate>Thu, 04 Jul 2013 01:22:40 UTC</pubDate>
      <guid>https://snipplr.com/view/71714/if-file-exists-function--serverside</guid>
    </item>
    <item>
      <title>(JavaScript) Really basic jquery plugin template - with callback - rickygri</title>
      <link>https://snipplr.com/view/71455/really-basic-jquery-plugin-template--with-callback</link>
      <description>&lt;p&gt;This is a really basic skeleton template for jQuery plugins. It provides a callback function which can be called anywhere in your plugin with base.success(); This will return the current element, but you can pass anything you like back by changing the base.$el value passed to the function to whatever you like.&lt;/p&gt;</description>
      <pubDate>Sat, 08 Jun 2013 01:35:44 UTC</pubDate>
      <guid>https://snipplr.com/view/71455/really-basic-jquery-plugin-template--with-callback</guid>
    </item>
    <item>
      <title>(JavaScript) Full-screen element (video / image) - rickygri</title>
      <link>https://snipplr.com/view/71273/fullscreen-element-video--image</link>
      <description>&lt;p&gt;Used to stretch a video / image to fill a background without skewing.  Attach to resize events&lt;/p&gt;</description>
      <pubDate>Thu, 23 May 2013 01:13:20 UTC</pubDate>
      <guid>https://snipplr.com/view/71273/fullscreen-element-video--image</guid>
    </item>
    <item>
      <title>(SQL) SQL query to delete all media and attachments in wordpress - rickygri</title>
      <link>https://snipplr.com/view/70656/sql-query-to-delete-all-media-and-attachments-in-wordpress</link>
      <description>&lt;p&gt;Run these queries (phpMyAdmin will do) to delete all media in the library, and remove all post attachment affiliation&lt;/p&gt;</description>
      <pubDate>Thu, 04 Apr 2013 20:14:52 UTC</pubDate>
      <guid>https://snipplr.com/view/70656/sql-query-to-delete-all-media-and-attachments-in-wordpress</guid>
    </item>
    <item>
      <title>(HTML) Basic HTML5 Template - rickygri</title>
      <link>https://snipplr.com/view/70363/basic-html5-template</link>
      <description>&lt;p&gt;Basic HTML template including jQuery and HTML5 Shiv&lt;/p&gt;</description>
      <pubDate>Tue, 12 Mar 2013 09:24:16 UTC</pubDate>
      <guid>https://snipplr.com/view/70363/basic-html5-template</guid>
    </item>
    <item>
      <title>(Apache) Fix 403 Forbidden wampserver tools (PHPmyadmin, sqlbuddy etc) on Windows 8 - rickygri</title>
      <link>https://snipplr.com/view/69861/fix-403-forbidden-wampserver-tools-phpmyadmin-sqlbuddy-etc-on-windows-8</link>
      <description>&lt;p&gt;To fix the issue with localhost under Windows 8 giving a 403 error (but working for 127.0.0.1) I did the following:&lt;/p&gt;</description>
      <pubDate>Fri, 08 Feb 2013 07:54:56 UTC</pubDate>
      <guid>https://snipplr.com/view/69861/fix-403-forbidden-wampserver-tools-phpmyadmin-sqlbuddy-etc-on-windows-8</guid>
    </item>
    <item>
      <title>(PHP) Get current URL with PHP in Apache or IIS - rickygri</title>
      <link>https://snipplr.com/view/69136/get-current-url-with-php-in-apache-or-iis</link>
      <description>&lt;p&gt;Get Current URL Path on Apache / IIS&lt;/p&gt;</description>
      <pubDate>Tue, 18 Dec 2012 00:24:54 UTC</pubDate>
      <guid>https://snipplr.com/view/69136/get-current-url-with-php-in-apache-or-iis</guid>
    </item>
    <item>
      <title>(jQuery) jQuery Plugin Template - rickygri</title>
      <link>https://snipplr.com/view/69097/jquery-plugin-template</link>
      <description>&lt;p&gt;This is a skeleton template for a jquery plugin with custom methods&lt;/p&gt;</description>
      <pubDate>Fri, 14 Dec 2012 04:23:27 UTC</pubDate>
      <guid>https://snipplr.com/view/69097/jquery-plugin-template</guid>
    </item>
    <item>
      <title>(JavaScript) Clear form input on focus - rickygri</title>
      <link>https://snipplr.com/view/68802/clear-form-input-on-focus</link>
      <description>&lt;p&gt;Clear text input when the user selects it (on focus)&lt;/p&gt;</description>
      <pubDate>Wed, 28 Nov 2012 21:43:26 UTC</pubDate>
      <guid>https://snipplr.com/view/68802/clear-form-input-on-focus</guid>
    </item>
    <item>
      <title>(CSS) Stylesheet Template - rickygri</title>
      <link>https://snipplr.com/view/68637/stylesheet-template</link>
      <description>&lt;p&gt;CSS stylesheet template - including HTML5 reset, tweaks for mobile including media queries, print reset styles, and base styles for standardization&lt;/p&gt;</description>
      <pubDate>Sun, 18 Nov 2012 21:54:52 UTC</pubDate>
      <guid>https://snipplr.com/view/68637/stylesheet-template</guid>
    </item>
    <item>
      <title>(CSS) Fluid width spacing of divs - rickygri</title>
      <link>https://snipplr.com/view/67868/fluid-width-spacing-of-divs</link>
      <description>&lt;p&gt;Space div elements evenly inside a wrapper without using float (no right spacing issue) so that all elements are flush to the edges.&lt;/p&gt;</description>
      <pubDate>Mon, 22 Oct 2012 22:33:26 UTC</pubDate>
      <guid>https://snipplr.com/view/67868/fluid-width-spacing-of-divs</guid>
    </item>
    <item>
      <title>(PHP) PDO Insert array function - rickygri</title>
      <link>https://snipplr.com/view/67679/pdo-insert-array-function</link>
      <description>&lt;p&gt;PDO-format insert array function&lt;/p&gt;</description>
      <pubDate>Wed, 10 Oct 2012 22:33:16 UTC</pubDate>
      <guid>https://snipplr.com/view/67679/pdo-insert-array-function</guid>
    </item>
    <item>
      <title>(JavaScript) POST form with jQuery (Ajax) - rickygri</title>
      <link>https://snipplr.com/view/66642/post-form-with-jquery-ajax</link>
      <description>&lt;p&gt;This send any value via POST to a PHP page. It is done with AJAX, so the POST return can be used on the same page as the submit&lt;/p&gt;</description>
      <pubDate>Fri, 10 Aug 2012 18:48:15 UTC</pubDate>
      <guid>https://snipplr.com/view/66642/post-form-with-jquery-ajax</guid>
    </item>
    <item>
      <title>(JavaScript) POST form with javascript (Non-Ajax) - rickygri</title>
      <link>https://snipplr.com/view/66619/post-form-with-javascript-nonajax</link>
      <description>&lt;p&gt;This javascript function takes the URL of the target page and an associative array of name/values paires and POSTs the data to the supplied URL by dynamically creating a form and then submitting it.&lt;/p&gt;</description>
      <pubDate>Fri, 10 Aug 2012 01:21:38 UTC</pubDate>
      <guid>https://snipplr.com/view/66619/post-form-with-javascript-nonajax</guid>
    </item>
    <item>
      <title>(JavaScript) Embed flash with swfobject.js using arrays - rickygri</title>
      <link>https://snipplr.com/view/63520/embed-flash-with-swfobjectjs-using-arrays</link>
      <description>&lt;p&gt;Shows how to use an array to embed swf objects with swfobject.js. This allows for multiple embeds (synced ad's etc.)&lt;/p&gt;</description>
      <pubDate>Thu, 23 Feb 2012 03:22:32 UTC</pubDate>
      <guid>https://snipplr.com/view/63520/embed-flash-with-swfobjectjs-using-arrays</guid>
    </item>
    <item>
      <title>(PHP) Force downloadable - rickygri</title>
      <link>https://snipplr.com/view/63519/force-downloadable</link>
      <description>&lt;p&gt;Force downloadable file with php&lt;/p&gt;</description>
      <pubDate>Thu, 23 Feb 2012 03:19:06 UTC</pubDate>
      <guid>https://snipplr.com/view/63519/force-downloadable</guid>
    </item>
  </channel>
</rss>
