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 random as ran | |
import math | |
# Variable de pi | |
pi = 0 | |
# Contador de dardos dentro del circulo | |
dardos_dentro = 0 | |
# Numero total de dardos a tirar | |
total = 10000 |
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
# Definición de acciones del elevador | |
ARRIBA = 1 | |
ABAJO = 2 | |
NUM_PISOS = 4 | |
MAX_PERSONAS = 6 | |
ERROR_PERSONAS = -2 | |
ERROR_PISO = -3 | |
class Persona: |
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
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0; | |
async function getLiveGameAPIAddress() { | |
return new Promise((resolve, reject) => { | |
const exec = require('child_process').exec; | |
const fetch = require("node-fetch"); | |
exec('tasklist', function (err, stdout, stderr) { | |
const leagueLine = stdout.split("\n").filter(l => l.startsWith("League of Legends.exe"))[0]; | |
if (leagueLine == null) { | |
reject("No League of Legends client found"); |