Skip to content

Instantly share code, notes, and snippets.

<html>
<body>
File Select
<input type="text" id="selectedfile" name="selectedfile">
<input type="file" id="inputfile" name="inputfile" onChange='showSelectedFile()' />
<br><br>
Search
<input type="text" id="search" name="search">
<table>
@aThorp96
aThorp96 / approximate-pi.py
Last active August 30, 2020 06:07
Approximate Pi with random number generation
# Approximate pi using the probability
# P(gcd(i,j) == 1) == 6/pi^2
# In other words, the probability that two numbers are co-prime, they have no
# common denominators, is 6 / (pi^2)
# Or, pi = sqrt(6/P)
#
# Thanks to Matt Parker at Stand Up Maths for this approximation technique,
# and for awesome content in general: https://www.youtube.com/watch?v=RZBhSi_PwHU
#
# I didn't feel like making a dedicated repository for this so there is no

A basic platformio init file for the Atmega 2560

Here so I can automate a restucturing of the Atmel Studio project and link it into a platformio format.

### Keybase proof
I hereby claim:
* I am athorp96 on github.
* I am awildthorp (https://keybase.io/awildthorp) on keybase.
* I have a public key whose fingerprint is 2150 8E32 FEA4 C95F 172D D8C6 C147 2ABE D00F F0DB
To claim this, I am signing this object: