Pinned Repositories
30-seconds-of-code
Short JavaScript code snippets for all your development needs
A-in-minecraft
adinsProj
bhg
Code samples for No Starch Press Black Hat Go
black-hat-python
Coding Examples and Exercises (converted to Python 3) from "Black Hat Python: Python Programming for Hackers and Pentesters"
bouncingSquare
My first pyGame: A friction less minecraft block that collides with the edges of the screen.
C-utils
Short and sweet snippers that serve to be referenced later.
calculator
finding-good-aproximations-of-pi
It all started when I saw 22/7 is a good approximation for PI while looking at a website, which lead me to wonder, what's better. In barely anytime at all I cobbled together findGoodAproximations.py. Then I thought, what if I didn't already know the value of PI? So I sought out to find it. To do this, I first thought up "PI Check". PI Check is: given an x and Y coordinate, check whether or not the coordinate is contained in a circle with radius R and a square with side length R. Then, I generated random points using random.uniform and performed a PI Check on each one. As the program ran, continously genenerating more points and results for those points I could see the output becoming 3.13-3.14. I never got anything more precise from it. My final program took dramatically longer to create than the former two programs (1-2h). It performs a PI Check on every cordinate to n decimal place, reports it's estimate of PI and then repeats the cycle on n+1 decimal place of coordinates, never repeating the same coordinate twice. Here are the results 10th decimal spot: 2.76, took 100 loops to compute 100th: 3.153658536585366, took 10,000 loops to compute 1000th: 3.1421803959912 took 1,000,000 loops to compute 10000th: 3.141619981862226 took 100,000,000 loops to compute I never got to the one-hundred-thousandth decimal place, as it would require 10 trillion loops to compute (probably a few hours). Maybe i'll run it overnight. All in all, I never did discover anywhere near a precise value of PI. I am however, quite pleased with the first program's results and the programming logic behind the 3rd.
text-file-searcher
Searches a directory and all sub directories for a specific string. (I made this to search .gz files in the minecraft logs)
JadeSpy's Repositories
JadeSpy/finding-good-aproximations-of-pi
It all started when I saw 22/7 is a good approximation for PI while looking at a website, which lead me to wonder, what's better. In barely anytime at all I cobbled together findGoodAproximations.py. Then I thought, what if I didn't already know the value of PI? So I sought out to find it. To do this, I first thought up "PI Check". PI Check is: given an x and Y coordinate, check whether or not the coordinate is contained in a circle with radius R and a square with side length R. Then, I generated random points using random.uniform and performed a PI Check on each one. As the program ran, continously genenerating more points and results for those points I could see the output becoming 3.13-3.14. I never got anything more precise from it. My final program took dramatically longer to create than the former two programs (1-2h). It performs a PI Check on every cordinate to n decimal place, reports it's estimate of PI and then repeats the cycle on n+1 decimal place of coordinates, never repeating the same coordinate twice. Here are the results 10th decimal spot: 2.76, took 100 loops to compute 100th: 3.153658536585366, took 10,000 loops to compute 1000th: 3.1421803959912 took 1,000,000 loops to compute 10000th: 3.141619981862226 took 100,000,000 loops to compute I never got to the one-hundred-thousandth decimal place, as it would require 10 trillion loops to compute (probably a few hours). Maybe i'll run it overnight. All in all, I never did discover anywhere near a precise value of PI. I am however, quite pleased with the first program's results and the programming logic behind the 3rd.
JadeSpy/text-file-searcher
Searches a directory and all sub directories for a specific string. (I made this to search .gz files in the minecraft logs)
JadeSpy/30-seconds-of-code
Short JavaScript code snippets for all your development needs
JadeSpy/A-in-minecraft
JadeSpy/adinsProj
JadeSpy/bhg
Code samples for No Starch Press Black Hat Go
JadeSpy/black-hat-python
Coding Examples and Exercises (converted to Python 3) from "Black Hat Python: Python Programming for Hackers and Pentesters"
JadeSpy/bouncingSquare
My first pyGame: A friction less minecraft block that collides with the edges of the screen.
JadeSpy/C-utils
Short and sweet snippers that serve to be referenced later.
JadeSpy/calculator
JadeSpy/chemistry-assistant
JadeSpy/coronaVirus
Draws multi layer circles directly onto the screen.
JadeSpy/ElectoralCollegeStuff
JadeSpy/email-read-reciepts
JadeSpy/Fart-Prank
JadeSpy/JsonToDjangoModel
JadeSpy/learning-c-
JadeSpy/learning-java
JadeSpy/mandelbrot-set-png-generator
creates and colors a .png file with the mandelbrot set.
JadeSpy/minecraft-bot-launcher
Oh! Whatever would I use this for?
JadeSpy/opencv
Open Source Computer Vision Library
JadeSpy/Programming-Basic-Operations
JadeSpy/Python-Programs
JadeSpy/RedditSaysDoWebDev
This program creates a neat design using scalable vector graphics and standard, basic web-dev stuff.
JadeSpy/Snippets-for-R
JadeSpy/string-math
Very rudimentary string multiplication and addition in python. Why you ask, because I wanted to, that's why.
JadeSpy/word-search-solver
JadeSpy/Wordle-Website
JadeSpy/WorkoutCounter
JadeSpy/Worlde-Stuff