2010 jQuery Summit: Ticket Winners!

|

In case you missed my previous blog post, I’m speaking at the upcoming jQuery Summit, a two-day online conference taking place on November 16th and 17th. I’ll be giving two talks, “Idiomatic jQuery” and “jQuery Pluginization” (one each day). In addition to my presentations, there will also be talks by a number of other well-known jQuery community members.

In addition, I promised that a few lucky winners would win a ticket for either the Designer or Developer tracks. So, with a little help from Brendan Eich, Ronald Fisher and Frank Yates, and without further ado…

Super-awesome JavaScript code

var developer = [
      '@jaredwilli',
      '@addy_osmani',
      '@coldfuser',
      '@jakemcgraw',
      '@robtarr'
    ],

    designer = [
      '@uberPinto',
      '@HEY_GERMANO',
      '@lynseydesign'
    ];

// From http://en.wikipedia.org/wiki/Fisher-Yates_shuffle
function shuffle( a ) {
  var n = a.length;
  for(var i = n - 1; i > 0; i--) {
      var j = Math.floor(Math.random() * (i + 1));
      var tmp = a[i];
      a[i] = a[j];
      a[j] = tmp;
  }
};

shuffle( developer );
shuffle( designer );

console.log( developer[0] ); // @coldfuser
console.log( developer[1] ); // @jaredwilli
console.log( designer[0] );  // @uberPinto
console.log( designer[1] );  // @lynseydesign

Congratulations, guys! I’ll send the discount codes out to you shortly!

And if you’re not one of the lucky winners, there’s still time, so sign up now.

Post A Comment

  • Any of these HTML tags may be used for style: a, b, i, br, p, strong, em, pre, code.
  • Multi-line JavaScript code should be wrapped in <pre class="brush:js"></pre>
    (supported syntax highlighting brushes: js, css, php, plain, bash, ruby, html, xml)
  • Use &lt; instead of < and &gt; instead of > in the examples themselves.