Рет қаралды 74,724
🥧 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...
🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
🎥 Previous video: • Coding Challenge #155:...
🎥 Next video: • Coding Challenge #157:...
🎥 All videos: • Coding Challenges
References:
🔗 Pi Searcher: angio.net/pi/
🔗 Peek in Pi: pi.fathom.info/
🔗 Boyer-Moore String Search: en.wikipedia.org/wiki/Boyer%E...
🔗 createReadStream(): nodejs.org/api/fs.html#fscrea...
Videos:
🎥 ES6 Arrow Function: • 16.3: ES6 Arrow Functi...
🎥 Server-side with Node.js: • 2.1 Server-side with N...
🎥 Working with Data and APIs track: • Working with Data and ...
🔴 Coding Train Live 189: • Coding Train Live 189:...
Related Coding Challenges:
🚂 #140 Leibniz Formula for Pi: • Coding Challenge #140:...
🚂 #161 Estimating π from Random Numbers with Euclid's Algorithm: • Coding Challenge 161: ...
🚂 #169 Pi in the Sky Game: • Coding Challenge 169: ...
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: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: thecodingtrain.com/discord
💖 Membership: kzbin.infojoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#math #piday #nodejs #p5js #javascript