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
const generarCedula = () => { | |
const provincias = [ | |
"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", | |
"11", "12", "13", "14", "15", "16", "17", "18", "19", "20", | |
"21", "22", "23", "24", "30" | |
]; | |
const tercerDigito = ["0", "1", "2", "3", "4", "5"]; | |
const cuarto_noveno = Array.from({ length: 7 }, () => Math.floor(Math.random() * 10)); | |
let cedula = provincias[Math.floor(Math.random() * provincias.length)] + |
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
import asyncio | |
from winrt.windows.media.control import \ | |
GlobalSystemMediaTransportControlsSessionManager as MediaManager | |
from winrt.windows.storage.streams import \ | |
DataReader, Buffer, InputStreamOptions | |
async def get_media_info(): | |
sessions = await MediaManager.request_async() | |
current_session = sessions.get_current_session() |
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
import pandas as pd | |
import sys | |
if(len(sys.argv[1:]) < 2): | |
print("Uso: py script.py _NOMBRETABLA_ --uppercase|--lowercase(opcional)") | |
exit() | |
try: | |
argumento = sys.argv[3] | |
except: | |
argumento = "invalid" |
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
{ | |
"1": { | |
"provincia": "AZUAY", | |
"cantones": { | |
"101": { | |
"canton": "CUENCA", | |
"parroquias": { | |
"10101": "BELLAVISTA", | |
"10102": "CAÑARIBAMBA", | |
"10103": "EL BATÁN", |