@TheCodingTrain
  @TheCodingTrain
The Coding Train | Coding Challenge #156: Peeking inside Pi @TheCodingTrain | Uploaded 4 years ago | Updated 1 hour ago
πŸ₯§ 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: thecodingtrain.com/challenges/156-peeking-inside-pi

πŸ•ΉοΈ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/sketches/U649qYR4

πŸŽ₯ Previous video: youtu.be/R3C2giDfmO8?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Next video: youtu.be/9z9mbiOZqSs?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
πŸ”— Pi Searcher: angio.net/pi
πŸ”— Peek in Pi: http://pi.fathom.info
πŸ”— Boyer-Moore String Search: en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string-search_algorithm
πŸ”— createReadStream(): nodejs.org/api/fs.html#fscreatereadstreampath-options

Videos:
πŸŽ₯ ES6 Arrow Function: youtube.com/watch?v=mrYMzpbFz18
πŸŽ₯ Server-side with Node.js: youtube.com/watch?v=wxbQP1LMZsw
πŸŽ₯ Working with Data and APIs track: youtube.com/playlist?list=PLRqwX-V7Uu6YxDKpFzf_2D84p0cyk4T7X
πŸ”΄ Coding Train Live 189: youtu.be/AkySW5uy7rU?t=1431s

Related Coding Challenges:
πŸš‚ #140 Leibniz Formula for Pi: youtu.be/uH4trBNn540
πŸš‚ #161 Estimating Ο€ from Random Numbers with Euclid's Algorithm: youtu.be/EvS_a921dBo
πŸš‚ #169 Pi in the Sky Game: youtu.be/_H9JIwWP7HQ

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! thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: github.com/CodingTrain
πŸ’¬ Discord: thecodingtrain.com/discord
πŸ’– Membership: http://youtube.com/thecodingtrain/join
πŸ›’ Store: standard.tv/codingtrain
πŸ–‹οΈ Twitter: twitter.com/thecodingtrain
πŸ“Έ Instagram: instagram.com/the.coding.train

πŸŽ₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— p5.js: p5js.org
πŸ”— p5.js Web Editor: editor.p5js.org
πŸ”— Processing: processing.org

πŸ“„ Code of Conduct: github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new

#math #piday #nodejs #p5js #javascript
Coding Challenge #156: Peeking inside PiCoding Challenge 185: Unfolding FractalsCoding Challenge #159: Simple Pendulum SimulationAdvent of Code (Side Project Saturday!)Coding Challenge 168: MandelBulb 3D FractalIntegration Test Stream #13.4 Polar Coordinates - The Nature of CodeGuest Conductor: Chrissy BrimmageI, Robot5.4 Arrive Steering Behavior - The Nature of CodeCoding Challenge: 3D on Apple II2.4: random() Function - p5.js Tutorial

Coding Challenge #156: Peeking inside Pi @TheCodingTrain

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER