Flabby Rabbit | The offical home of The Rabbit

Archive for the "Snippets" Category

Firebug Lite in IE

Anyone who has tried to make their projects work on ALL browsers (including IE6 and 7) will know the headache that it can become. With no real developer tools available it can be incredibly difficult to trace and debug problems. When you start using Firebug in Firefox or Inspect Element in Chrome you quickly forgot [...]

Read More ›

Quick and easy way to avoid CSS hacks

Probably the most incredibly useful snippet I have learnt recently. It’s beautifully simple and unbelievably essential. Creating websites for such a wide variety of platforms is hard enough but then when you throw IE6 and no script into the mix things can become very messy. Replace the tag with the following code and most of [...]

Read More ›

Sorting – BubbleSort

package com.flabbyrabbit.snippets.sorting; /**  * Optimised bubble sort, allowing for both ascending and descending sorts.  *  * @author Luke Ward  * @version 1.0  * @category Sorting  */ public class BubbleSort {     public void bubbleSort(int array[]) {         bubbleSort(array, true);     }         /**      * Takes [...]

Read More ›

 

Essentials