Coding Challenge #156: Peeking inside Pi

Coding Challenge #156: Peeking inside Pi

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=MEdpRYyjz_0



Duration: 30:39
71,644 views
2,234


๐Ÿฅง 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/156-peeking-inside-pi

๐Ÿ•น๏ธ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/U649qYR4

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

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

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

Related Coding Challenges:
๐Ÿš‚ #140 Leibniz Formula for Pi: https://youtu.be/uH4trBNn540
๐Ÿš‚ #161 Estimating ฯ€ from Random Numbers with Euclid's Algorithm: https://youtu.be/EvS_a921dBo
๐Ÿš‚ #169 Pi in the Sky Game: https://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! https://thecodingtrain.com/guides/passenger-showcase-guide
๐Ÿšฉ Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
๐Ÿ’ก GitHub: https://github.com/CodingTrain
๐Ÿ’ฌ Discord: https://thecodingtrain.com/discord
๐Ÿ’– Membership: http://youtube.com/thecodingtrain/join
๐Ÿ›’ Store: https://standard.tv/codingtrain
๐Ÿ–‹๏ธ Twitter: https://twitter.com/thecodingtrain
๐Ÿ“ธ Instagram: https://www.instagram.com/the.coding.train/

๐ŸŽฅ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
๐ŸŽฅ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

๐Ÿ”— 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-of-Conduct

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

#math #piday #nodejs #p5js #javascript