Skip to content

Instantly share code, notes, and snippets.

View realms-ai's full-sized avatar

Realms AI realms-ai

View GitHub Profile
@realms-ai
realms-ai / improve_lower_body.md
Created October 12, 2025 05:11
Excercises to improve tight hip flexors, hamstrings, and glutes

Excercises to improve tight hip flexors, hamstrings, and glutes

Phase 1

  1. pigeon pose
  2. seated hamstring stretch
  3. Hip Flexor Stretch (Lunge Stretch)
  4. Hamstring Stretch (Seated or Standing)
  5. Glute Stretch

Phase 2

@realms-ai
realms-ai / consumer_court_filing_prompt.md
Last active January 11, 2025 13:09
GPT Prompt to File Case in Consumer Court of Indian Law of Justice

PROMPT TO FILE A CONSUMER COMPLAINT IN INDIAN COURT OF JUSTICE

  • Sometimes, prompt might not give you better results in a first prompt, so let it know where you want to improve things
  • Final Draft should look something like this file
  • For Notarized Affidavit (Purchase an affidavit of any range from Rs.10 onwards. Pref: Rs. 100 one.
    • Description of affidavit: Article 4 affidavit
  • After online case is approved, need to submit 3 copies in consumer court forum near your place. Audio and Video files should be shared in CD, DVD or Pendrive.
    • On submission, you will get the first date of hearing
    • On first hearing, consent to proceed is provided if judge feels that case is relevant and needs hearing else discard the case without giving any order or may penalize a person or company to file a insignificant case and might penalize them too.

PROMPT 1

@realms-ai
realms-ai / react_design_patterns.md
Last active September 11, 2023 10:34
Common React Patterns

Common React Patterns

  1. Higher Order Components
  • Re-usable logic to components
  • Existing component with new UI
  • Component + HOC = Component + Additional functionality
  • Can contain only logic
  • Common in Redux
  1. Provider Design Pattern
@realms-ai
realms-ai / common_development_mistakes.md
Last active September 7, 2023 10:56
10 Most Common Mistakes by Developers

10 Most Common Mistakes by Developers

Link

  1. Incomplete Input Validation
  • SQL Injections (Don't trust the user input)
  1. Authentication without proper authorization
  • Authorization: confirm particular login user has access to specific resources or is granted permission to perform particular action
@realms-ai
realms-ai / movie_offers.md
Last active July 7, 2024 16:46
Movie Offers on Credit Card

ICICI

  • Saphirro - 1 + 1 upto Rs. 500
  • MMT - 25% discount
  • Debit (upto Rs. 400 2+2)
  • Coral - 25% discount upto Rs. 100

IDFC

  • 1 + 1 (2 times) upto Rs. 125 (Paytm)

Indusind

@realms-ai
realms-ai / wcag.md
Last active July 21, 2023 18:33
WCAG 2.1 standard that defines how to make web pages accessible.

WCAG

  • standard that defines how to make web pages accessible.

Four Core Principles

  1. Perceivable
  2. Operable
  3. Understandable
  4. Robust

Guidelines

@realms-ai
realms-ai / heatlh_myths_Harward_Professor.md
Created July 21, 2023 14:58
Harvard Professor: REVEALING The 7 Big LIES About Exercise, Sleep, Running, Cancer & Sugar!!!

Harvard Professor: REVEALING The 7 Big LIES About Exercise, Sleep, Running, Cancer & Sugar!!!

Pointers

  1. Interrupted sitting is more healthy than non-interrupted sitting
  2. Farmers/hunters get up every 10-15 mins
  3. People without electricity and gadgets sleep 6-7 hours a night. They don't nap
  4. Hunters/Farmers walk between 10k-18k per day. Reasonable number to keep one healthy

Current voltage deviation graph using D3

  • This is an example of D3 charts, which was written to create the heat map of current/voltage deviation.

Graph Link

Main Function

@realms-ai
realms-ai / ReChart_GaugeGraph_PieChartSample.md
Last active July 17, 2023 15:31
This a sample snippet of ReChart customizing **Gauge Chart** and **PieChart**

Multiple pie charts with arrow charts

This a sample snippet of ReChart customizing Gauge Chart and PieChart

Graph Link

Main Component

Main component includes product performance view with Pie graphs and gaugle graphs on the right for individual specifications. The components also use material ui. All updates in graphs were handled using redux since these were high frequency real time data updates.

@realms-ai
realms-ai / nextjs.md
Created July 16, 2023 11:55
Documenting basic NextJS features

Next JS

Link

  • It is a framework on React JS
  • Boilerplate on React JS
  • Streamlines development process by automating several functions

Features

  1. Turbopack (Incremental bundler optimzed for JS & TS)
  2. Speedy web compiler (Compilation & Minification)