warby_'s public fiddles
-
Rounding Algorithms
Different rounding algorithms in JavaScript. JavaScript's Math.round is an implementation of asymmetric round-half-up rounding. round-half-even (banker's) rounding has less bias over larger data sets, and is often a legal requirement for financial software. In practice, round-half-odd is rarely used as it will never round to 0, which is likely a desirable rounding algorithm attribute.
-
JavaScript Rounding
Demonstrating that JavaScript's rounding algorithm is asymmetric round-half-up . http://www.clivemaxfield.com/diycalculator/sp-round.shtml
-
jQuery Awesome Cursor Demo
jQuery plugin for using FontAwesome icons as custom CSS cursors
-
jQuery Page Walkthrough Example
Example walkthrough using https://github.com/stevefrost's fork
-
jQuery Page Walkthrough Example
Example walkthrough using https://github.com/stevefrost's fork
-
jQuery Page Walkthrough Example
Example walkthrough
-
Fuel UX 2.3 Skeleton
This is a jsFiddle which can be used to demonstrate code with Fuel UX 2.3
-
FuelUX 2 Spinner Data Attributes
Demonstrating a bug where data attributes are not used for Spinner options when the Spinner is indirectly instantiated (by invoking a method)
-
Enabling and disabling FuelUX 2 Spinner
Shows a bug where disabling then enabling a spinner makes it min/max values break
-
Disabled FuelUX 2 Select Menu Items
jQuery 1.7.2, HTML, CSS, JavaScript
-
a4p3swc6
jQuery 1.11.0, HTML, CSS, JavaScript
-
Unstable vs. Stable Sorting
Showing how the Array.prototype.sort function is unstable, and how to make it stable. The results of the unstable sorting may vary from browser to browser. For example, Chrome 35's sort algorithm uses insertion sort (which is stable) for arrays shorter than 11 elements, and QuickSort for longer arrays (which is unstable); hence why an array with 11 elements is used in this fiddle.
-
ContentEditable and FireFox
Fiddle to show a bug(?) in FireFox.
-
SimpleId Conflict Test
Testing conflicts when generating simpe ids.
-
Object Diff Generator
Generates a diff between two objects
-
Ordinal Number Generator
Test for a function to create ordinal numbers from integers (1 => 1st, 2 => 2nd)