This file contains 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
res = [] | |
document.querySelectorAll('td.js-cal-option').forEach(e => { | |
buy_el = (e.querySelector('div.normal-all-day')) | |
sell_el = (e.querySelector('div.pap-all-day')) | |
if (buy_el && sell_el) { | |
res.push({ | |
day: parseInt(e.querySelector('div.date').innerHTML.trim()), | |
buy: parseFloat(buy_el.childNodes[1].textContent.trim()), | |
sell: parseFloat(sell_el.childNodes[1].textContent.trim()), |
This file contains 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
# ...then the mortals started the coding: utf-8 was | |
# chosen, because their gods love to use diæreses | |
# | |
# Romanos, por Oliver Etchebarne -- ¡Ahora con comentarios! ¡Yay! | |
# | |
# http://drmad.org | |
class Romanos | |
def self.generar ( numero ) | |
# Valor posicional del dígito que estamos analizando |