<?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 16:16:02 +0000</lastBuildDate>
    <item>
      <title>(jQuery) Animated numbers update - claudiowebdesign</title>
      <link>https://snipplr.com/view/61273/animated-numbers-update</link>
      <description>&lt;p&gt;How to make numbers update with a smooth animation with jQuery&lt;/p&gt;</description>
      <pubDate>Tue, 29 Nov 2011 03:54:46 UTC</pubDate>
      <guid>https://snipplr.com/view/61273/animated-numbers-update</guid>
    </item>
    <item>
      <title>(JavaScript) get RGBA values as an object - claudiowebdesign</title>
      <link>https://snipplr.com/view/60570/get-rgba-values-as-an-object</link>
      <description>&lt;p&gt;this function gets a parameter like an hex color (es: "#ffffff"), an abbreviated hex color (es: "#fff"), an rgb color (es: "rgb(255,255,255)") or an rgba color (es: "rgba(255,255,255,1)"), and returns an object containing the rgba values, like { red:x, green:y, blue:z, alpha:k  }.&lt;/p&gt;</description>
      <pubDate>Sun, 06 Nov 2011 05:13:03 UTC</pubDate>
      <guid>https://snipplr.com/view/60570/get-rgba-values-as-an-object</guid>
    </item>
    <item>
      <title>(PHP) Document.class.php - claudiowebdesign</title>
      <link>https://snipplr.com/view/60011/documentclassphp</link>
      <description>&lt;p&gt;This is a little PHP class that permits to start quickly the creation of a webpage.&#13;
&#13;
When you declare an instance of the class it automatically starts the output buffering and gzip compression, it outputs all the proper tags (doctype, meta, stylesheets, scripts, etc.) until the .&#13;
&#13;
Everything you write after that gets actually placed inside the body, and when the page ends the and tags gets automatically added at the bottom.&#13;
&#13;
In addition to this, the class gets your IP so to display all the possible error/warning messages to you and none to the random users.&#13;
&#13;
EXAMPLES/USAGE: http://claudiobonifazi.com/snippets/Document&lt;/p&gt;</description>
      <pubDate>Fri, 21 Oct 2011 02:15:20 UTC</pubDate>
      <guid>https://snipplr.com/view/60011/documentclassphp</guid>
    </item>
    <item>
      <title>(jQuery) metro.js: recreating Windows 8 UI as a web interface - claudiowebdesign</title>
      <link>https://snipplr.com/view/59777/metrojs-recreating-windows-8-ui-as-a-web-interface</link>
      <description>&lt;p&gt;Hi everyone, a while ago i posted a little script that reproduced a little animation effect seen in Windows 8 Developer Preview. I thought about expanding it some more, and in the end i started actually recreating the whole Metro interface in HTML5/CSS3/jQuery. if anyone gets interested in it and desires to give a hand i'll soon upload everything on a public github repository&#13;
&#13;
THE RESULT: http://claudiobonifazi.com/snippets/metro&#13;
&#13;
THE SCRIPT: http://claudiobonifazi.com/snippets/metro/script/metro.js&#13;
&#13;
THE MINIFIED SCRIPT: http://claudiobonifazi.com/snippets/metro/script/metro.min.js&#13;
&#13;
hope you enjoy&lt;/p&gt;</description>
      <pubDate>Fri, 14 Oct 2011 22:53:35 UTC</pubDate>
      <guid>https://snipplr.com/view/59777/metrojs-recreating-windows-8-ui-as-a-web-interface</guid>
    </item>
    <item>
      <title>(PHP) Database php class - claudiowebdesign</title>
      <link>https://snipplr.com/view/59434/database-php-class</link>
      <description>&lt;p&gt;That's something quick. A basic php class to manage properly a database. Thanks to magic methods opening a database is almost automatic.&lt;/p&gt;</description>
      <pubDate>Wed, 05 Oct 2011 09:31:06 UTC</pubDate>
      <guid>https://snipplr.com/view/59434/database-php-class</guid>
    </item>
    <item>
      <title>(jQuery) Facebook like notifications with jQuery - claudiowebdesign</title>
      <link>https://snipplr.com/view/59327/facebook-like-notifications-with-jquery</link>
      <description>&lt;p&gt;I tried to create a little jQuery method to notify events to the user just as in facebook.&#13;
&#13;
EXAMPLE: http://claudiobonifazi.com/snippets/fb_like_notifications/&#13;
&#13;
1- Link this little plugin to your page (or paste it into your files as you wish)&#13;
&#13;
2- add to your page an empty element (a div or similar) and on page load call $('thatdiv').setPopup()&#13;
&#13;
3- Set that element to position:fixed and position it where you like (in this page it has left:50px and bottom:50px)&#13;
&#13;
4- Whenever an event requires the appearing of one of those little popups, do $('thatdiv').callPopup('html content to place inside it')&#13;
&#13;
5- For styling read the demo page's source as a guideline&lt;/p&gt;</description>
      <pubDate>Sun, 02 Oct 2011 05:20:34 UTC</pubDate>
      <guid>https://snipplr.com/view/59327/facebook-like-notifications-with-jquery</guid>
    </item>
    <item>
      <title>(jQuery) metro.js : a windows8 like onclick effect - claudiowebdesign</title>
      <link>https://snipplr.com/view/59326/metrojs--a-windows8-like-onclick-effect</link>
      <description>&lt;p&gt;After giving a try with the Windows 8 Developer Preview i asked myself if i could reproduce the on click effect of the metro UI in a webpage.&#13;
&#13;
Sadly, for what i know at this time CSS3 3d transformations works only on webkit browsers, so this is nothing more than a code exercise with no real job usefulness. Anyway, here it is: if you click on one of the big squared link they tilt in the direction of the nearest border and if you click exactly in the center they perform a reducing effect. If you try it in firefox or opera only the reducing effect works.&#13;
&#13;
EXAMPLE: http://claudiobonifazi.com/snippets/metro_click/&lt;/p&gt;</description>
      <pubDate>Sun, 02 Oct 2011 05:18:14 UTC</pubDate>
      <guid>https://snipplr.com/view/59326/metrojs--a-windows8-like-onclick-effect</guid>
    </item>
    <item>
      <title>(PHP) Mostrare differenze di tempo come stringhe - claudiowebdesign</title>
      <link>https://snipplr.com/view/58074/mostrare-differenze-di-tempo-come-stringhe</link>
      <description>&lt;p&gt;Questa piccola funzione riceve come argomento uno unix timestamp e ritorna una stringa contenente la "descrizione verbosa" della differenza di tempo. Ad esempio, usando il timestamp relativo a 5 minuti e mezzo fa, ritornerÃ  la stringa "5 minuti e 30 secondi fa".&#13;
nota: Funziona anche con timestamp nel futuro, e dando il timestamp attuale ritorna "Adesso".&lt;/p&gt;</description>
      <pubDate>Mon, 22 Aug 2011 02:42:39 UTC</pubDate>
      <guid>https://snipplr.com/view/58074/mostrare-differenze-di-tempo-come-stringhe</guid>
    </item>
    <item>
      <title>(PHP) Return the name of a day as a string - claudiowebdesign</title>
      <link>https://snipplr.com/view/57985/return-the-name-of-a-day-as-a-string</link>
      <description>&lt;p&gt;That snippet return the name of the day (in Italian, but you can easily change that). Giving a value to $offset permits to refer to a day that isn't today, and setting $short to True permits to return a three character shorthand.&lt;/p&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:07:25 UTC</pubDate>
      <guid>https://snipplr.com/view/57985/return-the-name-of-a-day-as-a-string</guid>
    </item>
    <item>
      <title>(jQuery) Animated link underline - claudiowebdesign</title>
      <link>https://snipplr.com/view/57983/animated-link-underline</link>
      <description>&lt;p&gt;The underlining under the links moves smoothly between them, just like the menu navigation in http://www.claudiobonifazi.com&lt;/p&gt;</description>
      <pubDate>Thu, 18 Aug 2011 08:34:57 UTC</pubDate>
      <guid>https://snipplr.com/view/57983/animated-link-underline</guid>
    </item>
    <item>
      <title>(jQuery) Lightweight \"label inside input field\" snippet - claudiowebdesign</title>
      <link>https://snipplr.com/view/57973/lightweight-label-inside-input-field-snippet</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 18 Aug 2011 04:05:11 UTC</pubDate>
      <guid>https://snipplr.com/view/57973/lightweight-label-inside-input-field-snippet</guid>
    </item>
    <item>
      <title>(CSS) Show links on webpage print - claudiowebdesign</title>
      <link>https://snipplr.com/view/57797/show-links-on-webpage-print</link>
      <description>&lt;p&gt;On screen:&#13;
Click here to see the pics!&#13;
&#13;
On print:&#13;
Click here [link: http://www.shabada.boh] to see the pics!&lt;/p&gt;</description>
      <pubDate>Sat, 13 Aug 2011 04:04:55 UTC</pubDate>
      <guid>https://snipplr.com/view/57797/show-links-on-webpage-print</guid>
    </item>
    <item>
      <title>(PHP) Setting cookies like stack arrays - claudiowebdesign</title>
      <link>https://snipplr.com/view/46383/setting-cookies-like-stack-arrays</link>
      <description>&lt;p&gt;A little function used to set cookies as arrays of values instead of single combinations key-&gt;value. Note that it saves values as a stack.&lt;/p&gt;</description>
      <pubDate>Sun, 02 Jan 2011 06:39:07 UTC</pubDate>
      <guid>https://snipplr.com/view/46383/setting-cookies-like-stack-arrays</guid>
    </item>
    <item>
      <title>(CSS) image loading with rotating gif - claudiowebdesign</title>
      <link>https://snipplr.com/view/43624/image-loading-with-rotating-gif</link>
      <description>&lt;p&gt;You can simply put it in your reset stylesheet. It visualizes the classic rotating gif while the document's images are coming from the server at page load.&lt;/p&gt;</description>
      <pubDate>Fri, 05 Nov 2010 09:19:57 UTC</pubDate>
      <guid>https://snipplr.com/view/43624/image-loading-with-rotating-gif</guid>
    </item>
    <item>
      <title>(HTML) HTML5 standard template - claudiowebdesign</title>
      <link>https://snipplr.com/view/43555/html5-standard-template</link>
      <description>&lt;p&gt;Just a bit of essential code lines to start everytime from. // I don't use it :P&lt;/p&gt;</description>
      <pubDate>Thu, 04 Nov 2010 20:42:51 UTC</pubDate>
      <guid>https://snipplr.com/view/43555/html5-standard-template</guid>
    </item>
    <item>
      <title>(jQuery) jQuery plugin: Spiral animations - claudiowebdesign</title>
      <link>https://snipplr.com/view/43352/jquery-plugin-spiral-animations</link>
      <description>&lt;p&gt;A jQuery plugin that adds the .spiral() method, wich moves an element along an archimedean spiral path.&lt;/p&gt;</description>
      <pubDate>Mon, 01 Nov 2010 05:03:10 UTC</pubDate>
      <guid>https://snipplr.com/view/43352/jquery-plugin-spiral-animations</guid>
    </item>
  </channel>
</rss>
