Skip to content

Instantly share code, notes, and snippets.

@ntkog
Created August 15, 2017 12:29
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 ntkog/0cbef2f1a243aefd021d5cf577605222 to your computer and use it in GitHub Desktop.
Save ntkog/0cbef2f1a243aefd021d5cf577605222 to your computer and use it in GitHub Desktop.
Ver de un plumazo un resumen de charlas tageadas por lenguajes de programación en la Agenda de Codemotion en Consola
var tags = Array.from([].slice.call(document.querySelectorAll('span[class*=tag-programming-language--]'))
.map((el)=>[].slice.call(el.classList)
.filter((className)=>/language--/.test(className))[0]).reduce((acc,cur)=>acc.add(cur), new Set()));
console.table(tags.map((tag) => ({ language : tag.split("--")[1] , total : document.querySelectorAll(`.${tag}`).length })));
@ntkog
Copy link
Author

ntkog commented Aug 15, 2017

screen shot 2017-08-15 at 14 33 16

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