Skip to content

Instantly share code, notes, and snippets.

@mathiasbynens
Created June 17, 2011 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathiasbynens/1031788 to your computer and use it in GitHub Desktop.
Save mathiasbynens/1031788 to your computer and use it in GitHub Desktop.
Belgian #fronteers11 attendees
// Run this in your console on http://fronteers.nl/
// @fronteers Can haz JSON-P, pretty please?
jQuery.get('/congres/2011/attendees.json', function(data) {
var belgians = data.fronteers2011.andAllTheirOtherData.filter(function(attendee) {
return attendee.country == 'BE';
}).map(function(attendee) {
return attendee.name + (attendee.twitter ? ' (@' + attendee.twitter + ')' : '');
}),
title = belgians.length + ' Belgian attendees:';
console.log([title, Array(title.length + 1).join('=')].concat(belgians).join('\n'));
});
@mathiasbynens
Copy link
Author

Now that fronteers.nl enabled JSONP, here’s a JSONP demo (without jQuery): http://mths.be/f11be

For comparison:

@mathiasbynens
Copy link
Author

All 2008—2011 attendees, sorted by loyalty in ascending order: https://mths.be/bdf
All 2008—2013 attendees, sorted by loyalty in ascending order: https://mths.be/bnc
All 2008—2015 attendees, sorted by loyalty in ascending order: https://mths.be/bue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment