Coding Challenge #156: Peeking inside Pi

🄧 Happy Pi Day 2020! In this challenge, I build a simple web application using p5.js and node.js to search in the first billion digits of Pi. Code: https://thecodingtrain.com/challenges... šŸ•¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s... šŸŽ„ Previous video:    • CodingĀ ChallengeĀ #155:Ā KaleidoscopeĀ Snowfl...Ā Ā  šŸŽ„ Next video:    • CodingĀ ChallengeĀ #157:Ā ZoomĀ AnnotationsĀ wi...Ā Ā  šŸŽ„ All videos:    • CodingĀ ChallengesĀ Ā  References: šŸ”— Pi Searcher: https://angio.net/pi/ šŸ”— Peek in Pi: http://pi.fathom.info/ šŸ”— Boyer-Moore String Search: https://en.wikipedia.org/wiki/Boyer%E... šŸ”— createReadStream(): https://nodejs.org/api/fs.html#fscrea... Videos: šŸŽ„ ES6 Arrow Function:    • 16.3:Ā ES6Ā ArrowĀ FunctionĀ -Ā TopicsĀ ofĀ JavaS...Ā Ā  šŸŽ„ Server-side with Node.js:    • 2.1Ā Server-sideĀ withĀ Node.jsĀ -Ā WorkingĀ wit...Ā Ā  šŸŽ„ Working with Data and APIs track:    • WorkingĀ withĀ DataĀ andĀ APIsĀ inĀ JavaScriptĀ Ā  šŸ”“ Coding Train Live 189:    • CodingĀ TrainĀ LiveĀ 189:Ā SearchingĀ forĀ Digit...Ā Ā  Related Coding Challenges: šŸš‚ #140 Leibniz Formula for Pi:    • CodingĀ ChallengeĀ #140:Ā PiĀ ApproximationĀ wi...Ā Ā  šŸš‚ #161 Estimating Ļ€ from Random Numbers with Euclid's Algorithm:    • CodingĀ ChallengeĀ 161:Ā Estimating π fromĀ Ra...Ā Ā  šŸš‚ #169 Pi in the Sky Game:    • CodingĀ ChallengeĀ 169:Ā PiĀ inĀ theĀ SkyĀ GameĀ Ā  Timestamps: 0:00 Introduction 2:30 Importing Pi Into p5.js 3:37 Searching Numbers in Pi 7:09 IndexOf Function 13:13 Importing 1GB File 16:38 Dividing the Data into Read Streams 18:25 Searching 1 Billion Digits 19:44 Creating an API 28:42 Conclusions and Ideas Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound šŸš‚ Website: http://thecodingtrain.com/ šŸ‘¾ Share Your Creation! https://thecodingtrain.com/guides/pas... 🚩 Suggest Topics: https://github.com/CodingTrain/Sugges... šŸ’” GitHub: https://github.com/CodingTrain šŸ’¬ Discord: https://thecodingtrain.com/discord šŸ’– Membership: http://youtube.com/thecodingtrain/join šŸ›’ Store: https://standard.tv/codingtrain šŸ–‹ļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā  šŸ“ø Instagram: Ā Ā /Ā the.coding.trainĀ Ā  šŸŽ„ Coding Challenges:    • CodingĀ ChallengesĀ Ā  šŸŽ„ Intro to Programming:    • StartĀ learningĀ here!Ā Ā  šŸ”— p5.js: https://p5js.org šŸ”— p5.js Web Editor: https://editor.p5js.org/ šŸ”— Processing: https://processing.org šŸ“„ Code of Conduct: https://github.com/CodingTrain/Code-o... This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod... #math #piday #nodejs #p5js #javascript