<?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 14:39:20 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) Make everything "Responsive" - burnandbass</title>
      <link>https://snipplr.com/view/97048/make-everything-responsive</link>
      <description>&lt;p&gt;Client wanted an iFrame with fixed dimensions. The iFrame is fixed height, so we agreed that it will not be responsive. However, after a while, the client needed it responsive, but could not do modifications for the parent page ( so it can communicate with the iFrame, get it's height and update it ), so I decided I can just scale the whole f*kin stuff and make it "Responsive".&#13;
&#13;
So here is the code if  somebody needs it. &#13;
&#13;
This is how I (t)Roll&lt;/p&gt;</description>
      <pubDate>Fri, 17 Apr 2015 22:07:12 UTC</pubDate>
      <guid>https://snipplr.com/view/97048/make-everything-responsive</guid>
    </item>
    <item>
      <title>(PHP) Rewrite pagination slug in Wordpress - burnandbass</title>
      <link>https://snipplr.com/view/93910/rewrite-pagination-slug-in-wordpress</link>
      <description>&lt;p&gt;Rewrite "page" to "p" so /page/10 becomes /p/10&lt;/p&gt;</description>
      <pubDate>Wed, 18 Mar 2015 20:37:13 UTC</pubDate>
      <guid>https://snipplr.com/view/93910/rewrite-pagination-slug-in-wordpress</guid>
    </item>
    <item>
      <title>(PHP) Custom posttype in homepage loop - burnandbass</title>
      <link>https://snipplr.com/view/93909/custom-posttype-in-homepage-loop</link>
      <description>&lt;p&gt;Add 'demo" posttype in main loop and also in the RSS feed&lt;/p&gt;</description>
      <pubDate>Wed, 18 Mar 2015 20:36:28 UTC</pubDate>
      <guid>https://snipplr.com/view/93909/custom-posttype-in-homepage-loop</guid>
    </item>
    <item>
      <title>(PHP) WordPress - get only post content on ajax request - burnandbass</title>
      <link>https://snipplr.com/view/82164/wordpress--get-only-post-content-on-ajax-request</link>
      <description>&lt;p&gt;If you need on ajax request to get only the post content&lt;/p&gt;</description>
      <pubDate>Mon, 24 Nov 2014 19:47:42 UTC</pubDate>
      <guid>https://snipplr.com/view/82164/wordpress--get-only-post-content-on-ajax-request</guid>
    </item>
    <item>
      <title>(Apache) htaccess redirect to index.html - burnandbass</title>
      <link>https://snipplr.com/view/81430/htaccess-redirect-to-indexhtml</link>
      <description>&lt;p&gt;le't say we put our project in "dir" folder&lt;/p&gt;</description>
      <pubDate>Wed, 12 Nov 2014 21:12:26 UTC</pubDate>
      <guid>https://snipplr.com/view/81430/htaccess-redirect-to-indexhtml</guid>
    </item>
    <item>
      <title>(PHP) Rename WordPress folder - burnandbass</title>
      <link>https://snipplr.com/view/80572/rename-wordpress-folder</link>
      <description>&lt;p&gt;Sometimes it is usefull to hide that you're using wordpress. Rename wp-content folder to "media" and add this un wp-settings.php just before including the settings.&lt;/p&gt;</description>
      <pubDate>Thu, 30 Oct 2014 22:11:20 UTC</pubDate>
      <guid>https://snipplr.com/view/80572/rename-wordpress-folder</guid>
    </item>
    <item>
      <title>(PHP) Wordpress - remove the version number from styles and scripts - burnandbass</title>
      <link>https://snipplr.com/view/80567/wordpress--remove-the-version-number-from-styles-and-scripts</link>
      <description>&lt;p&gt;Put it in functions.php&lt;/p&gt;</description>
      <pubDate>Thu, 30 Oct 2014 20:03:24 UTC</pubDate>
      <guid>https://snipplr.com/view/80567/wordpress--remove-the-version-number-from-styles-and-scripts</guid>
    </item>
    <item>
      <title>(JavaScript) Add/Get objects From/To LocalStorage - burnandbass</title>
      <link>https://snipplr.com/view/80188/addget-objects-fromto-localstorage</link>
      <description>&lt;p&gt;saveToStorage("objectName", {javascript:"object"});&#13;
&#13;
To get the object use getFromStorage("objectName");&#13;
&#13;
If the object does not exist, the function returns new empty object;&lt;/p&gt;</description>
      <pubDate>Thu, 23 Oct 2014 21:10:28 UTC</pubDate>
      <guid>https://snipplr.com/view/80188/addget-objects-fromto-localstorage</guid>
    </item>
    <item>
      <title>(ActionScript 3) View trace() output in JavaScript console - burnandbass</title>
      <link>https://snipplr.com/view/68735/view-trace-output-in-javascript-console</link>
      <description>&lt;p&gt;import ExternalInterface class&#13;
use this instead of trace() to view output in JavaScript console&lt;/p&gt;</description>
      <pubDate>Sat, 24 Nov 2012 01:16:09 UTC</pubDate>
      <guid>https://snipplr.com/view/68735/view-trace-output-in-javascript-console</guid>
    </item>
    <item>
      <title>(jQuery) jquery.fitText.js -&gt; Fit text in div - burnandbass</title>
      <link>https://snipplr.com/view/65948/jqueryfittextjs--fit-text-in-div</link>
      <description>&lt;p&gt;This is simple plugin, that will allow you to fit text in a div - the text will become the largest/smallest possible to fill all the div. It have self-explanatory options you can pass. The shrinking engine is Based on Nikolay Kuchumov script (https://github.com/kuchumovn/jquery-full-house), some mofications by Chrysto Panayotov (Bassta) -&gt; Allow to center the text, add "spans" with different color, red border to see the div, etc. Require jQuery 1.7.1+ . Set width and height of the container.&#13;
&#13;
save in jquery.fitText.js&#13;
&#13;
usage:&#13;
&#13;
html --&gt; &lt;div&gt; Hello, this {is} span&lt;/div&gt;&#13;
&#13;
JS(onLoad) --&gt; $("#mydiv").fillText({border: true, spanColor:"green", textAlign:"center", verticalAlign:"middle"});&lt;/p&gt;</description>
      <pubDate>Wed, 04 Jul 2012 23:23:48 UTC</pubDate>
      <guid>https://snipplr.com/view/65948/jqueryfittextjs--fit-text-in-div</guid>
    </item>
    <item>
      <title>(ActionScript 3) ActionScript3 Touch Event - burnandbass</title>
      <link>https://snipplr.com/view/64629/actionscript3-touch-event</link>
      <description>&lt;p&gt;by Bassta&lt;/p&gt;</description>
      <pubDate>Wed, 18 Apr 2012 18:33:25 UTC</pubDate>
      <guid>https://snipplr.com/view/64629/actionscript3-touch-event</guid>
    </item>
    <item>
      <title>(jQuery) Iterate trough array - 1,2,3,1,2,3...etc - burnandbass</title>
      <link>https://snipplr.com/view/64364/iterate-trough-array--123123etc</link>
      <description>&lt;p&gt;This is perfect for "cycling" items...&lt;/p&gt;</description>
      <pubDate>Thu, 05 Apr 2012 09:42:53 UTC</pubDate>
      <guid>https://snipplr.com/view/64364/iterate-trough-array--123123etc</guid>
    </item>
    <item>
      <title>(jQuery) Fullscreen Google Maps Background - burnandbass</title>
      <link>https://snipplr.com/view/64305/fullscreen-google-maps-background</link>
      <description>&lt;p&gt;This is the whole HTML page with JS/CSS embeded, uses Google Maps API V3&lt;/p&gt;</description>
      <pubDate>Tue, 03 Apr 2012 05:17:42 UTC</pubDate>
      <guid>https://snipplr.com/view/64305/fullscreen-google-maps-background</guid>
    </item>
    <item>
      <title>(ActionScript 3) ActionScript 3 SliceBitmap Class - burnandbass</title>
      <link>https://snipplr.com/view/63280/actionscript-3-slicebitmap-class</link>
      <description>&lt;p&gt;just slice bitmap class, takes DisplayObject, return array of BitmapData's&#13;
&#13;
Can be used to do something like this: http://burnandbass.com/basstaslider&lt;/p&gt;</description>
      <pubDate>Sun, 12 Feb 2012 06:46:10 UTC</pubDate>
      <guid>https://snipplr.com/view/63280/actionscript-3-slicebitmap-class</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 - trim text for specific width and heigh - burnandbass</title>
      <link>https://snipplr.com/view/62792/as3--trim-text-for-specific-width-and-heigh</link>
      <description>&lt;p&gt;Hi;&#13;
&#13;
Sometimes you need to "trim" textifield for specific height... This solves just this, perfect for news, news-readers, rss etc&lt;/p&gt;</description>
      <pubDate>Thu, 26 Jan 2012 22:13:05 UTC</pubDate>
      <guid>https://snipplr.com/view/62792/as3--trim-text-for-specific-width-and-heigh</guid>
    </item>
    <item>
      <title>(ActionScript 3) AutoPilot - cycle items in some seconds - burnandbass</title>
      <link>https://snipplr.com/view/62624/autopilot--cycle-items-in-some-seconds</link>
      <description>&lt;p&gt;This is lightwave script, made for banners/slideshows. You pass number items, time for slide and autostart. If you have 5 items and pass 2 seconds each, trought 2 seconds interval the numbers will be sldied (1,2,3,4,5,1,2,3,4,5,1,2,3..) and event will be passed. The code is self-explanary, for some real-world examples write me a comment&lt;/p&gt;</description>
      <pubDate>Wed, 18 Jan 2012 20:46:02 UTC</pubDate>
      <guid>https://snipplr.com/view/62624/autopilot--cycle-items-in-some-seconds</guid>
    </item>
    <item>
      <title>(ActionScript 3) Simple, but very robust Mad Libs algoritm - burnandbass</title>
      <link>https://snipplr.com/view/62150/simple-but-very-robust-mad-libs-algoritm</link>
      <description>&lt;p&gt;This is very simple script, you can add ass meny items and arrays as you want. You can change the separator and/or enging of the sentance. It can be very easily modified to work with external XML files&lt;/p&gt;</description>
      <pubDate>Wed, 28 Dec 2011 22:33:38 UTC</pubDate>
      <guid>https://snipplr.com/view/62150/simple-but-very-robust-mad-libs-algoritm</guid>
    </item>
    <item>
      <title>(ActionScript 3) LightLoader - load array of images, GC, bug fixes, 1.2k compressed - burnandbass</title>
      <link>https://snipplr.com/view/62059/lightloader--load-array-of-images-gc-bug-fixes-12k-compressed</link>
      <description>&lt;p&gt;This is VERY BASIC loading class, the idea is to load array of images and when they're loaded you can retrve them via ChromeLoader.getContent() method, just pass ID. In the constructor you got prepend url (for example images/) and "backup" (example "/backup" ). This will be used if the loader... The names of the functions are self-exaplanary, this is perfect solution for lightwave banners. &#13;
v 1.1 - GarbageCollection added&lt;/p&gt;</description>
      <pubDate>Wed, 21 Dec 2011 23:02:35 UTC</pubDate>
      <guid>https://snipplr.com/view/62059/lightloader--load-array-of-images-gc-bug-fixes-12k-compressed</guid>
    </item>
    <item>
      <title>(ActionScript 3) Random generated String - burnandbass</title>
      <link>https://snipplr.com/view/61938/random-generated-string</link>
      <description>&lt;p&gt;This is easy way to generate random string&#13;
&#13;
this will generate random word with 10 letters in it&#13;
var a:String = randString(10);&lt;/p&gt;</description>
      <pubDate>Sat, 17 Dec 2011 04:26:33 UTC</pubDate>
      <guid>https://snipplr.com/view/61938/random-generated-string</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 - Load and display image in flash from local drive - burnandbass</title>
      <link>https://snipplr.com/view/60758/as3--load-and-display-image-in-flash-from-local-drive</link>
      <description>&lt;p&gt;Use this class to create a simple upload-to-flash button. Select image from your local harddrive and upload it in flash, later you can get is as Bitmap() object&#13;
All images are stored in static array, so you can retrive it anywhere you want in your code!&lt;/p&gt;</description>
      <pubDate>Sun, 13 Nov 2011 02:25:01 UTC</pubDate>
      <guid>https://snipplr.com/view/60758/as3--load-and-display-image-in-flash-from-local-drive</guid>
    </item>
    <item>
      <title>(ActionScript 3) Remove HTML tags - burnandbass</title>
      <link>https://snipplr.com/view/60500/remove-html-tags</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 03 Nov 2011 03:30:46 UTC</pubDate>
      <guid>https://snipplr.com/view/60500/remove-html-tags</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Stats - hooked with Bassta Framework - burnandbass</title>
      <link>https://snipplr.com/view/52870/as3-stats--hooked-with-bassta-framework</link>
      <description>&lt;p&gt;Hi;&#13;
&#13;
This is part of my new framework, the class is called Stats and is very simple stat util, click the black background to get more info, click the circle to garbage collect. It always get's on the top of the stage display list&#13;
&#13;
The Grawl graphics are drawn by Bassta Draw API &#13;
&#13;
demo: http://burnandbass.com/stats-bab/&lt;/p&gt;</description>
      <pubDate>Mon, 02 May 2011 09:06:51 UTC</pubDate>
      <guid>https://snipplr.com/view/52870/as3-stats--hooked-with-bassta-framework</guid>
    </item>
    <item>
      <title>(ActionScript 3) Drag/drop/scale/move DebugUtil with TransformManager - burnandbass</title>
      <link>https://snipplr.com/view/52709/dragdropscalemove-debugutil-with-transformmanager</link>
      <description>&lt;p&gt;You need the greensock's TransformManager class, it is paid, but worth it. I use this class for debugging purposes, to move at runtime objects at the scene.&#13;
&#13;
Use MagicDevugger.create(passSomeSprite); and you can transform all children of passSomeSprite&lt;/p&gt;</description>
      <pubDate>Thu, 28 Apr 2011 06:36:17 UTC</pubDate>
      <guid>https://snipplr.com/view/52709/dragdropscalemove-debugutil-with-transformmanager</guid>
    </item>
    <item>
      <title>(ActionScript 3) Tween any DisplayObject to Black and White, or from Black&amp;White to Color - burnandbass</title>
      <link>https://snipplr.com/view/52453/tween-any-displayobject-to-black-and-white-or-from-blackwhite-to-color</link>
      <description>&lt;p&gt;I'm going to use TweenLite for this;&#13;
&#13;
We need to import the ColorMatrixFilterPlugin and register it&lt;/p&gt;</description>
      <pubDate>Fri, 22 Apr 2011 05:51:02 UTC</pubDate>
      <guid>https://snipplr.com/view/52453/tween-any-displayobject-to-black-and-white-or-from-blackwhite-to-color</guid>
    </item>
    <item>
      <title>(ActionScript 3) See all embeded fonts - burnandbass</title>
      <link>https://snipplr.com/view/52375/see-all-embeded-fonts</link>
      <description>&lt;p&gt;You have to import 	import flash.text.Font first&lt;/p&gt;</description>
      <pubDate>Wed, 20 Apr 2011 20:25:01 UTC</pubDate>
      <guid>https://snipplr.com/view/52375/see-all-embeded-fonts</guid>
    </item>
    <item>
      <title>(ActionScript 3) Easy XML Loading util - burnandbass</title>
      <link>https://snipplr.com/view/49415/easy-xml-loading-util</link>
      <description>&lt;p&gt;Simple usage:&#13;
&#13;
var xmlLoader:LoadXMLUtil = new LoadXMLUtil("path_to_xml.xml");&#13;
xmlLoader.addEventListener(Event.COMPLETE, onLoaderComplete);&#13;
&#13;
private function onLoaderComplete(event:Event):void{&#13;
			trace("Loaded XML: ");&#13;
			trace(xmlLoader.xml);&#13;
		}&lt;/p&gt;</description>
      <pubDate>Tue, 22 Feb 2011 22:13:43 UTC</pubDate>
      <guid>https://snipplr.com/view/49415/easy-xml-loading-util</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 TextHandle Util - TextField made easy - burnandbass</title>
      <link>https://snipplr.com/view/48331/as3-texthandle-util--textfield-made-easy</link>
      <description>&lt;p&gt;Very simple and basic TextHandle class, extends TextField... You can extend to fit your needs.&#13;
&#13;
Basic usage:&#13;
&#13;
var a:TextHandle = new TextHandle("some text");&#13;
addChild(a)&#13;
&#13;
Optional params:&#13;
 &#13;
_size: uint ( default 22 ) - size of the textfiled&#13;
&#13;
_color: uint ( default 0x000000, black ) - the color of the textfield&lt;/p&gt;</description>
      <pubDate>Thu, 03 Feb 2011 15:16:20 UTC</pubDate>
      <guid>https://snipplr.com/view/48331/as3-texthandle-util--textfield-made-easy</guid>
    </item>
    <item>
      <title>(ActionScript 3) Util for managing DisplayObject\'s depths - burnandbass</title>
      <link>https://snipplr.com/view/45908/util-for-managing-displayobjects-depths</link>
      <description>&lt;p&gt;the code is self-explanary&lt;/p&gt;</description>
      <pubDate>Sat, 18 Dec 2010 12:10:18 UTC</pubDate>
      <guid>https://snipplr.com/view/45908/util-for-managing-displayobjects-depths</guid>
    </item>
    <item>
      <title>(ActionScript 3) Drawing and animating a circle with Tweener - burnandbass</title>
      <link>https://snipplr.com/view/45268/drawing-and-animating-a-circle-with-tweener</link>
      <description>&lt;p&gt;Sometimes you need to make animated circle - for example for preloader. This is havily based on Colibri flash player from http://chrometaphore.com/&lt;/p&gt;</description>
      <pubDate>Sat, 04 Dec 2010 10:20:00 UTC</pubDate>
      <guid>https://snipplr.com/view/45268/drawing-and-animating-a-circle-with-tweener</guid>
    </item>
    <item>
      <title>(ActionScript 3) Close htmlText tag function - usefull if you tween htmlText - burnandbass</title>
      <link>https://snipplr.com/view/45240/close-htmltext-tag-function--usefull-if-you-tween-htmltext</link>
      <description>&lt;p&gt;Sometimes you need to tween htmlText with Tweener and Text Shortcuts  :)&lt;/p&gt;</description>
      <pubDate>Fri, 03 Dec 2010 23:03:56 UTC</pubDate>
      <guid>https://snipplr.com/view/45240/close-htmltext-tag-function--usefull-if-you-tween-htmltext</guid>
    </item>
    <item>
      <title>(ActionScript 3) Number utils - center, boundery - burnandbass</title>
      <link>https://snipplr.com/view/45239/number-utils--center-boundery</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 03 Dec 2010 23:01:08 UTC</pubDate>
      <guid>https://snipplr.com/view/45239/number-utils--center-boundery</guid>
    </item>
    <item>
      <title>(ActionScript 3) Usefull Array utils - SHUFFLE, Random, remove, - burnandbass</title>
      <link>https://snipplr.com/view/45238/usefull-array-utils--shuffle-random-remove</link>
      <description>&lt;p&gt;Sometimes you need special array functions, not build in AS3. Special ArrayUtils class with some static methods can help us :)&lt;/p&gt;</description>
      <pubDate>Fri, 03 Dec 2010 22:59:03 UTC</pubDate>
      <guid>https://snipplr.com/view/45238/usefull-array-utils--shuffle-random-remove</guid>
    </item>
    <item>
      <title>(ActionScript 3) Tweening number with Tweener - burnandbass</title>
      <link>https://snipplr.com/view/45237/tweening-number-with-tweener</link>
      <description>&lt;p&gt;Sometimes you need to tween a number (for example from 1-100) and to get the number&lt;/p&gt;</description>
      <pubDate>Fri, 03 Dec 2010 22:53:59 UTC</pubDate>
      <guid>https://snipplr.com/view/45237/tweening-number-with-tweener</guid>
    </item>
  </channel>
</rss>
