This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getData(day) { | |
| return [...document.querySelectorAll('span.button-label + span.button-indicator,.agenda-talk-title, a.agenda-social-link[title*="votes"]')].reduce((o,c,i,a)=>{ | |
| if (i % 3 == 0) { | |
| o.push({ | |
| day: day, | |
| title: a[i].textContent, | |
| bookmarked: +a[i + 1].textContent, | |
| votes: +a[i + 2].title.split(" out of ")[1].split(" votes")[0], | |
| rating: +a[i + 2].title.split(" out of ")[0], | |
| ratio: +a[i + 2].title.split(" out of ")[1].split(" votes")[0] * 100 / +a[i + 1].textContent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var talksByLikes = [].slice.call(document.querySelectorAll('.ka-td-contents')).map((talk) => ({ title : talk.querySelector('.ka-talk-title').textContent , author: talk.querySelector('.ka-username').textContent, favs : +talk.querySelector('span.ka-button-indicator').textContent, rating : +talk.querySelector('a.ka-like-link + a.ka-social-link').textContent , ratio : talk.querySelector('a.ka-like-link + a.ka-social-link').title })); | |
| var currentDay = /5693168230072320/.test(window.location.href) | |
| ? "5649626120060928" | |
| : "5693168230072320"; | |
| document.querySelector(`a[data-day-id="${currentDay}"]`).click(); | |
| setTimeout(function(){ | |
| talksByLikes = talksByLikes.concat([].slice.call(document.querySelectorAll('.ka-td-contents')).map((talk) => ({ title : talk.querySelector('.ka-talk-title').textContent , author: talk.querySelector('.ka-username').textContent, favs : +talk.querySelector('span.ka-button-indicator').textContent, rating : +talk.querySelector('a.ka-like-link + a.ka-social-link').textContent, ratio: ta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <link rel="stylesheet" type="text/css" href="/asciinema-player.css" /> | |
| <script src="/asciinema-player.js"></script> | |
| </head> | |
| <body> | |
| <div id="player-container"></div> | |
| <script> | |
| function generateCommandList(source) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <style> | |
| html, body { | |
| width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <style> | |
| #container { | |
| flex-shrink: 0; |
NewerOlder