← Back to team overview

ubuntu-co-concilio team mailing list archive

Re: [U-co] OT: Lista de miembros organizadas por karma

 

Esto lo podemos agregar en el wiki de reapproval cierto ??

y ahi forma de replicar el blog en el planet?  creo que es algo que le
puede interesar a mucha gente.   Ojo que Fernando es uno de los
candidatos ;)

Lo traduzco para el que lo pueda replicar (antes por favor preguntarle a
Fernando).. (será que el lo sacó de algún lado... ????)


How to obtain your team members karma from Launchpad .net

One of our communuty members, Fernando (you can check his blog at
http://blog.beford.org )  post some weeks ago this small javascript that
could be pretty useful for other LoCoTeams.  I' m transcribing his post
here for public consumption.

This little javascript obtains a sorted list of members from any
Launchpad Team by karma.  It's using the Launchpad API and Mochikit

In order to test it you should drag the Karma table link to your
favorites bar, then you must go to www.launchpad.net.  When you're there
just clic on the Karma table favorite and it would ask you for the team
you want to check and voíla.. you'd get your favorite's team karma
sorted member list.

This is the code so everyone can take a look on it:

javascript:(
 function(){
 var d = loadJSONDoc('/api/devel/~'+prompt('Team name:', 'ubuntu-co')+'/members?ws.size=200');
 d.addBoth(function (res) {
 res.entries.sort(function(a,b) { return parseFloat(b.karma) - parseFloat(a.karma) } );
 msg = "";
 for (i=0;i<res.total_size;i++) {
 msg =  msg + "\r\n" + '<tr><td>'+(i+1)+'</td>
<td><a href="/~'+res.entries[i].name+'">'+res.entries[i].display_name+'</a></td>
<td>'+res.entries[i].karma+'</td></tr>';
 };
 document.body.innerHTML="<table class=\"listing\" id=\"activemembers\">
<thead><tr><th>&nbsp;</th><th>Name</th><th>Karma</th></tr></thead>
<tbody>"+msg+"</tbody>
</table>";
 });
 }
)();

Best regards from Ubuntu Colombia.

For the original post please check
http://blog.beford.org/2010/07/30/obtener-lista-de-karma-en-teams-launchpad-net/






El vie, 30-07-2010 a las 19:34 -0500, Ingeniero Forigua escribió:

> > Buenas noches,
> >
> > Hace un par de semanas recuerdo haber leido en los logs de la reunion
> > de Ubuntu-co que necesitaban ver la lista de usuarios organizados por
> > karma. Hice un pequeño Javascript (bookmarklet), en el caso que a
> > alguien le interese, lo publique en mi sitio [1].
> >
> > [1] http://blog.beford.org/2010/07/30/obtener-lista-de-karma-en-teams-launchpad-net/
> >
> > - Fernando
> >
> > --
> > Al escribir recuerde observar la etiqueta (normas) de esta lista: http://ur1.ca/0uf7
> > Para cambiar su inscripción, vaya a "Cambio de opciones" en http://ur1.ca/0uf9
> >
> 
> Que buen trabajo :D, pondre tu trabajo en la wiki de reaproval si no
> te molesta :D
> 
> https://wiki.ubuntu.com/ColombianTeam/TeamReApproval2010
> 
> -- 
> =======Administrador Ubuntu Colombia========
> ==...Gratis lo recibisteis; dadlo gratis. (Mt 10, 8)==
> Mi Identi.ca: http://identi.ca/ingforigua
> http://www.gnewbook.org/pg/profile/IngForigua
> 


-- 
Andrés Mauricio Mujica Zalamea <amujicaz@xxxxxxxxx>
Andrés Mauricio Mujica Zalamea

Follow ups