1 2 3 4
puts '1' puts '2' puts 'buzz' ...
Ruby On Challenge: Ugliest Ruby Fiz...
by Gary Haran,
December 20, 2007 22:23
JavaScript On I care about older browsers...
by Gary Haran,
October 31, 2007 14:59
No sir. This was client si...
1 2 3
document.write ('<noscript>\n'); document.write (imageClick); document.write ("</noscript>");
JavaScript I care about older browsers...
by Gary Haran,
October 30, 2007 22:30,
3 refactorings
I found this great piece of...
1 2 3 4
class String def postal? self.match(/[a-zA-Z]{1}\d{1}[a-zA-Z]{1}([\x20-])*\d{1}[a-zA-Z]{1}\d{1}/) ? true : false ...
Ruby Is This String Postal?
We've had the debate over w...
1 2 3 4
p = Proc.new { |en, fr| lang.to_s == "en" ? en : fr } breaker = case location_type when 'point' ...
1 2 3 4
if self.location_type.to_s == 'point' breaker = self.lang == 'fr' ? 'proximite' : 'near' else ...
1 2 3 4
Object.extend(Date.prototype, { isLeap: function(){ var year = this.getFullYear(); ...
JavaScript On Is this year a leap year?
by Gary Haran,
September 21, 2007 08:05
Indeed we could remove one ...
1 2 3 4
Object.extend(Date.prototype, { isLeap: function(){ var year = this.getFullYear(); ...
JavaScript Is this year a leap year?
by Gary Haran,
September 21, 2007 07:16,
11 refactorings
I'm pretty sure we can figu...
1 2 3 4
String.prototype.hello = function(){ alert('hello world!'); } ...
JavaScript Hello World
by Gary Haran,
September 17, 2007 13:09,
1 refactoring
This is simply to test out ...


Mine runs faster than yours