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
// startup | |
.AddGoogle(options => | |
{ | |
IConfigurationSection googleAuthNSection = | |
config.GetSection("Authentication:Google"); | |
options.ClientId = googleAuthNSection["ClientId"]; | |
options.ClientSecret = googleAuthNSection["ClientSecret"]; | |
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 os | |
import random as random | |
import math as math | |
import statistics as std | |
from bokeh.plotting import figure, output_file, show | |
os.system('cls') | |
tries = 10 | |
puntos = 100 |
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 | |
def estimate_pi(number_of_needle): | |
needles_on_circle = 0 | |
for _ in range(number_of_needle): | |
x = random.uniform(0,1) | |
y = random.uniform(0,1) | |
distance = x**2 + y**2 | |
if distance <= 1: | |
needles_on_circle += 1 |