Alessandro's public fiddles
-
Firefox 4: change/blur event are not dispatched to input upon button click
jQuery 1.4.4, HTML, CSS, JavaScript
-
Testing break on error with Chrome
See: http://stackoverflow.com/questions/2233339/javascript-is-there-a-way-to-get-chrome-to-break-on-all-errors
-
CoffeeScript zip
Four different solutions to the same problem using CoffeeScript, a for comprehension, and zip. My favorite? I'll go with either #1 because it is the most native to CoffeeScript, and syntactically pleasing, or with #4 because it closely matches the way I think about the solution.
-
Firefox: vertical-align: baseline stops working when using overflow: hidden
Mootools 1.3 (compat), HTML, CSS, JavaScript
-
Body/girl probability
Answering the question: what is the percentage of boys in a society where couple only stop having babies when they have a boy.
-
Underscore.js: take
Similar to tap() but changes the current object in the chaining. Or seen another way: similar to map() but on a single object.
-
Underscore.js: match
A (very) poor man's version of Scala's pattern matching.
-
Underscore.js: adding safe navigation
Inspired by Bill's post on Scala: http://this-statement-is-false.blogspot.com/2009/07/safe-navigation-operators-for-scala.html
-
Setting colspan attribute with an empty string
Setting value of colSpan to a non-number causes an error on IE, but not other browser.
-
YUI 2.6 on IE 7 issue with button inside scrollable box
Hitting a YUI 2.6 issue where a YUI button inside a scrollable box gets half rendered outside of the box. Here is how it looks like on IE 7: http://img.skitch.com/20101008-bcbp2fiq9amdbt777wjagjp23s.png This bug has been fixed in YUI 2.7.