Skip to content

Commit

Permalink
added custom scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush4345 committed Feb 27, 2024
1 parent bbab3e7 commit 0ae9088
Show file tree
Hide file tree
Showing 15 changed files with 243 additions and 10 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"static": "next build && next export"
"static": "node script.js && next build && next export",
"custom-script": "node script.js"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
Expand All @@ -32,6 +33,7 @@
"markdown-to-jsx": "^7.4.0",
"next": "^13.4.12",
"next-mdx-remote": "^4.4.1",
"node-fetch": "^3.3.2",
"postcss": "8.4.27",
"react": "18.2.0",
"react-canvas-nest": "^1.1.1",
Expand Down
42 changes: 42 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions public/blog-response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"meta": {
"total_count": 2
},
"items": [
{
"id": 8,
"meta": {
"type": "blog.BlogPage",
"detail_url": "http://localhost/api/v2/pages/8/",
"html_url": "http://localhost/blogs/insane-engineering-of-sr71/",
"slug": "insane-engineering-of-sr71",
"show_in_menus": false,
"seo_title": "",
"search_description": "",
"first_published_at": "2024-01-29T14:58:56.774677Z",
"alias_of": null,
"locale": "en"
},
"title": "Insane Engineering Of Sr71",
"blog_body": "It’s hard to explain the engineering marvel that is the SR-71 Blackbird. A long-range plane capable of flying 26 kilometers above the surface of the planet. So high that the pilots could see the curvature on the planet and the inky black of space from their cockpits. It flew so fast that the engineers had to develop entirely new materials and designs to mitigate and dissipate the heat generated from aerodynamic friction. Unique engines were needed to function from 0 up to Mach 3.2, dealing with a myriad of problems like cooling, fuel efficiency, and supersonic shock waves interfering with airflow. A plane so advanced that when it detected a surface-to-air missile its response was simply to change course and speed up. Even though the missiles had a higher top speed, they couldn’t achieve the range and high altitude maneuverability the Blackbird could. A speed at which the SR-71 could cruise for extended periods.\r\n\r\n![aerodynamics](https://tetragram.codered.cloud/media/images/1.max-800x600.png)\r\n\r\nHow on earth did it manage that? To achieve those kinds of speeds a ramjet is typically needed. A ramjet, as you can probably guess from the name, relies on ram pressure to operate. Ram Pressure is simply the pressure that occurs as a plane rams itself through the air. So, as the engine moves through the sky, it funnels this high-pressure air inside. Before entering the combustion chamber the supersonic airflow must first be slowed down. This acts as the compressor stage of a normal jet engine, elevating the air pressure before it enters the combustion chamber. Once the air enters the combustion chamber, It is mixed with fuel and ignited. It expands and accelerates once again out of the exit nozzle. With no moving parts, this type of engine is capable of flying at speeds far greater than a typical turbine-driven engine, but it cannot start from zero. It needs forward movement to achieve the correct compression of air in the combustion chamber. So, they are either dropped from a conventional plane, have a secondary propulsion system, or are a hybrid of a conventional jet engine and a ramjet, which is precisely what the SR-71 used.\r\n\r\nThe turbojet J58 engine of the SR-71 is nestled inside the nacelle here. In front and around The J58 is a complicated system of airflow management. These control mechanisms allow the propulsion system to transition from a primarily turbojet engine to a ramjet engine in mid-flight\r\n\r\nFirst, the inlet spike. It is capable of moving forward and back by 0.66 meters. This adjusts the inlet and the throat area, which controls the airflow entering the engine. It also keeps the position of the normal shock wave at its ideal position between the inlet throat and the compressor, this is the most efficient position for the shock wave, as it minimizes the energy lost due to drag as air flows over the shock wave. The inlet spike stays in the forward position until Mach 1.6. After this point, it begins to move backward by 41 millimeters forever 0.1 increase in Mach number. Keeping the shock wave in its ideal position. The inlet spike contains perforations that connect to the outside of the nacelle through ducts. Initially, the flow of air will come from the outside in to provide additional airflow to the turbojet engines, but once the plane hits about Mach 0.5 this airflow reverses. As the plane speeds up the inlet spike develops a significant boundary layer of air. A boundary layer is a layer of very slow-moving air that clings to the surface of objects. By bleeding this layer of slow-moving air off to the inlet spike it frees up a greater area of the inlet area for high energy fast-moving air, and thus improves efficiency. Around the engine, there is a bypass area, which takes air from the inlet and bypasses it is around the J58 engine. This air was used to cool the J58, which again improved engine efficiency and allowed the plane to fly faster. After the air passes the engine it rejoins the airflow just after the engine afterburner, adding additional thrust as more oxygen becomes available for combustion and increases the pressure through the ejector nozzle. Air got into this bypass area in several ways. There was a shock trap, otherwise known as the cowl bleed, located here, which again helped minimize boundary layer growth. There were stuck-in doors, located here, which opened only from Mach 0 to Mach 0.5, to add additional air to the bypass for engine cooling.",
"blog_img_url": "https://tetragram.codered.cloud/media/images/1.max-800x600.png",
"blog_title": "Insane Engineering Of Sr71",
"blog_authors": "Ramesh, Suresh, Chaitanya",
"published_on": "2024-01-29",
"blog_slug": "aerodynamics",
"blog_description": "It’s hard to explain the engineering marvel that is the SR-71 Blackbird. A long-range plane capable of flying 26 kilometers above the surface of the planet.",
"blog_tags": "Rust, Golang, Serverside"
},
{
"id": 9,
"meta": {
"type": "blog.BlogPage",
"detail_url": "http://localhost/api/v2/pages/9/",
"html_url": "http://localhost/blogs/the-future-of-processors-and-computing/",
"slug": "the-future-of-processors-and-computing",
"show_in_menus": false,
"seo_title": "",
"search_description": "",
"first_published_at": "2024-01-29T15:01:20.613379Z",
"alias_of": null,
"locale": "en"
},
"title": "The Future Of Processors And Computing",
"blog_body": "The CPU has had a revolutionary phase backed up with many challenges to become what it looks like today. During the initial 2000s, when the fight for performance was at its peak, AMD and Intel were contending as the frontrunners. At first, increasing clock speed posed a major threat which lasted for quite a while and didn't require much effort. However, due to the laws of physics, this rapid growth had to reach its end.\r\n\r\nAccording to Moore's Law, the number of transistors on a chip had to be doubled every 24 months. Processors had to become smaller to accommodate more transistors, which would mean better performance. However, the resultant increase in temperature would depend on massive cooling. Therefore, the race for speed soon changed its trajectory to be the fight against the laws of physics. Though, the solution to this problem didn't take much of a cost. Instead of increasing clock speeds, producers now introduce multiple-core chips, where each core had the exact same clock speed because of which computers could now be more effective in performing multiple tasks during the same intervals.\r\n\r\n![SPACE](https://tetragram.codered.cloud/media/images/1.max-800x600_Mr08U9t.png)\r\n\r\nThe strategy ultimately prevailed but it came along with some drawbacks. The introduction of multiple cores needed developers to introduce different algorithms so that the improvements could be observable. Now, this didn't come quite easy in the gaming world where the CPU's performance had always been a prime characteristic. Another issue was that the more cores you have, operating them becomes harder.\r\n\r\nIt was also difficult to come up with an efficient code that would function with all the cores. If there was a possibility to develop a 150 GHz single- core unit, it would've been the ideal machine. However, silicon chips cannot be clocked up that fast due to the laws of physics. And this started to raise possibilities of replacing silicon in the processor industry.",
"blog_img_url": "https://tetragram.codered.cloud/media/images/1.max-800x600_Mr08U9t.png",
"blog_title": "The Future Of Processors And Computing",
"blog_authors": "Ramesh, Suresh, Chaitanya",
"published_on": "2023-01-04",
"blog_slug": "computing",
"blog_description": "The CPU has had a revolutionary phase backed up with many challenges to become what it looks like today. During the initial 2000s, when the fight for performance was at its peak, AMD and Intel were contending as the frontrunners.",
"blog_tags": "mbsa, ayush, ietnitk, webdev"
}
]
}
55 changes: 55 additions & 0 deletions public/event-response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"meta": {
"total_count": 2
},
"items": [
{
"id": 10,
"meta": {
"type": "events.EventsPage",
"detail_url": "http://localhost/api/v2/pages/10/",
"html_url": "http://localhost/events/dare-to-design/",
"slug": "dare-to-design",
"show_in_menus": false,
"seo_title": "",
"search_description": "",
"first_published_at": "2024-01-29T15:24:26.781796Z",
"alias_of": null,
"locale": "en"
},
"title": "DARE TO DESIGN",
"event_title": "<p data-block-key=\"esubr\"><b>DARE TO DESIGN</b></p>",
"event_slug": "daretodesign",
"event_date": "2023-09-13",
"event_organizer": "IET NITK",
"event_location": "Google Meet",
"event_tags": "python, rust, ruby",
"event_img_url": "https://images.unsplash.com/photo-1577401159468-3bbc7ee440b5?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
"event_body": "# Schedule\r\n\r\nFriday, 14th January 2022 - Knowledge Exchange Program on The Basics of Electronics(R,L,C) - 5:00 PM.\r\n\r\nSaturday, 22nd January 2022 - Competition - From 6 PM\r\n\r\n## General FAQ'S Regarding Event\r\n1. **Who’s eligible?**\r\n\r\n1st and 2nd year Undergraduates all over India.\r\n\r\n2. **Do we have to pay for registering?**\r\n\r\nNo, registration is absolutely free. \r\n\r\n3. **Are teams allowed to participate?**\r\n\r\nNo, it is an individual competition.\r\n\r\n4. **What are the perks of participating?**\r\n\r\n- The top 2 contestants get a chance to win prize money.\r\n\r\n- Top 3 participants will receive commendation certificates.\r\n\r\n5. **When and where?**\r\n\r\nThe KEP is scheduled on 14th January 2022 and the competition on 22st January 2022. It will be conducted virtually.\r\n\r\n6. **Where do I register for it?**\r\n\r\nRegistration link : [https://forms.gle/oAnDSa6jjQqa3SkQA](https://forms.gle/oAnDSa6jjQqa3SkQA)\r\n\r\n7. **What are the topics I need to be good at for Competition?**\r\n\r\n- Basics of R,L,C,RL,RC,RLC circuits and their transient analysis and Frequency Analysis.\r\n\r\n- KEP (Knowledge Exchange Program) on the above topics and practice questions will be provided to boost your confidence for the Competition.\r\n\r\n- More details about the competition will be provided a day before the competition.\r\n\r\n8. **Is Laptop Mandatory for Competition?**\r\n\r\n- LTSpice software will be used for competition. So a laptop will be mandatory.\r\n\r\n- We shall provide a tutorial on how to install and use it.\r\n\r\n9. **Is it mandatory to attend KEP?**\r\n\r\n- KEP is to help you understand the basics of R,L,C circuits and on how to use LTSpice software.\r\n\r\n- It's not mandatory but we recommend everyone to attend it.\r\n\r\n10. **Why there is week gap between KEP and Competition?**\r\n\r\n- After KEP, we are providing time for the registrants to dig deep into topics and understand them well.\r\n\r\n- We will also provide questions for practicing."
},
{
"id": 11,
"meta": {
"type": "events.EventsPage",
"detail_url": "http://localhost/api/v2/pages/11/",
"html_url": "http://localhost/events/inkfiesta/",
"slug": "inkfiesta",
"show_in_menus": false,
"seo_title": "",
"search_description": "",
"first_published_at": "2024-01-29T15:25:29.935217Z",
"alias_of": null,
"locale": "en"
},
"title": "INKFIESTA",
"event_title": "<p data-block-key=\"3lk34\"><b>INKFIESTA</b></p>",
"event_slug": "inkfiesta",
"event_date": "2026-01-08",
"event_organizer": "NITK",
"event_location": "NITK Main Building",
"event_tags": "webdev, css, html, js, python",
"event_img_url": "https://images.unsplash.com/photo-1577401159468-3bbc7ee440b5?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
"event_body": "# VALOSTORM\r\n\r\nA fun-filled event to bring out the gamer in you and compete to be the best gamer out there. Register in teams of 5 or individually and showcase your gaming talent! Individual registrants will be teamed up with other individual registrants to form teams of 5.\r\n\r\nGame: **Valorant** - A 5v5 Character-based FPS Tactical shooter game\r\n\r\nMode: **Spike Rush** (first team to win 4 rounds wins)\r\n\r\nKnockout tournament (Winning team advances to the next round)\r\n\r\nHosting platform: Valorant ( Download link: [https://playvalorant.com/en-gb/](https://playvalorant.com/en-gb/) )\r\n\r\n**Are you up for the challenge? Registration Link** -[https://bit.ly/Valostorm](https://bit.ly/Valostorm)\r\n\r\n# SEIZE THE NIGHT\r\nSEIZE THE NIGHT is an event to discover and shine your hidden talent. We present you a stage where you can perform various things such as\r\n\r\n- Skit\r\n- Music\r\n- Stand-up\r\n- Story Telling\r\n- Poem Reciting and many more.\r\n\r\nYou need to fill out the registration form with your details and choose your performance. There will be a panel of judges who will score you according to your presentation, confidence and communication skills. So get ready to amaze everyone with your bag of tricks.\r\n\r\n**Registration Link** - [https://bit.ly/SeizeTheNt](https://bit.ly/SeizeTheNt)\r\n\r\n# DO I MATTER?\r\nWe will be talking about an introduction to one’s inner journey and what they can do on a regular basis to keep their mental health upright. You can read more about the organization here in the link - [https://www.chanshi.org/](https://www.chanshi.org/)\r\n\r\nThe event goes live on the 30th of January at 11 AM on the Inkheart Youtube Channel. Along with that, a meeting link will be shared, 30 mins prior to the event start.\r\n\r\n**Youtube Channel Link** - [https://bit.ly/InkheartYT](https://bit.ly/InkheartYT)\r\n\r\n**Do join us and have a fun-filled weekend!**"
}
]
}
Loading

0 comments on commit 0ae9088

Please sign in to comment.