Skip to content

Instantly share code, notes, and snippets.

View suhasksv's full-sized avatar
💻
Coding Is A Sport 🤟 Code Every Day

Suhas K suhasksv

💻
Coding Is A Sport 🤟 Code Every Day
View GitHub Profile
@suhasksv
suhasksv / resistor_color_code.md
Created September 21, 2025 06:22
Resistor Color Code Fortnightly Foundations ForthPost P1
Color Value (Band 1 & 2) Multiplier (Band 3 - "Number of Zeros")
Black 0 1 (No zeros)
Brown 1 10 (1 zero)
Red 2 100 (2 zeros)
Orange 3 1,000 (3 zeros)
Yellow 4 10,000 (4 zeros)
Green 5 100,000 (5 zeros)
Blue 6 1,000,000 (6 zeros)
Violet 7 10,000,000 (7 zeros)
@suhasksv
suhasksv / indian-sci-independence-day.md
Last active August 14, 2025 17:56
fortnightly-foundations SecondPost
Pioneer Core Field Key Innovation(s) Enduring Societal Impact
Sir M. Visvesvaraya Civil Engineering Automatic Floodgates, Block System Irrigation, KRS Dam Modern Water Management, Industrialization Blueprint, Flood Protection
Jagadish Chandra Bose Electrical Engineering Crystal Radio Detector, Millimeter-Wave Transmission Foundation of Semiconductors, Wireless Communication (Wi-Fi, Radar)
Homi J. Bhabha Nuclear Engineering India's 3-Stage Nuclear Program, TIFR & BARC Energy Self-Reliance, Medical Isotopes, Fundamental Research
Satish Dhawan Aerospace Engineering Experimental Fluid Dynamics, ISRO's Modern Structure India's Space Prowess (PSLV, Mangalyaan), Ethical Leadership Model
Vinod Dham Computer Engineering Pentium Processor, Flash Memory (ETOX) Democratization of Personal Computing, Modern Digital Storage
E. Sreedharan Civil Engineering Konkan Railway, Delhi Metro Transformation of Urban Public Transport
@suhasksv
suhasksv / f1-wet-tyres.md
Created August 10, 2025 07:44
F1 Medium: Wet Tyres
Tyre Type Sidewall Colour Intended Condition Tread Depth (Relative) Water Displacement (at 300km/h)
Intermediate Green Damp track, light rain, drying conditions Shallow ~35-40 Litres/sec per tyre
Full Wet Blue Heavy rain, significant standing water Deep >85 Litres/sec per tyre
@suhasksv
suhasksv / types-of-f1-tyres.md
Created August 10, 2025 07:39
F1 Medium: Different Types of Tyres used for F1 Beast
Compound Relative Hardness Intended Circuit Type / Characteristics
C1 Hardest Circuits with the highest energy demands, heat, and abrasive surfaces. Designed for maximum durability and long stints.
C2 Hard Suited to fast, hot, and abrasive circuits. Often a conservative choice for new tracks to verify tyre loads.
C3 Medium Extremely versatile. Can serve as the Hard, Medium, or Soft at a given race. Offers an excellent balance of performance and durability.
C4 Soft Works well on low-severity circuits where quick warm-up is needed for peak performance. Used extensively throughout the season.
C5 Softest Designed for the slowest circuits with low wear, like street tracks, where maximum mechanical grip is required from the rubber.
C6 Ultra-Soft The newest and softest compound, intended for street circuits to encourage higher degradation and more pit stops, making races less predictable.
@suhasksv
suhasksv / roadtyre-vs-f1.md
Created August 10, 2025 06:48
F1 Mudium: F1 Tyre vs Road Types
Feature Road Car Tyre Formula 1 Tyre
Lifespan Up to 80,000 km (50,000 miles) 60-120 km
Surface (Dry) Treaded with grooves for water Smooth "slick" surface
Sidewall Thick and robust for durability Extremely thin (4-5mm) but reinforced
Compound Hard, durable rubber for longevity Very soft, sticky rubber for maximum grip
Optimal Temp. Wide operating range Narrow, high-temperature window (90−110∘C)
Purpose Generalist: safety, longevity, comfort Specialist: peak performance and speed
Est. Cost (Set of 4) $400 - $1,200 Over $8,000

C++ EndSem Previous Year Questions

P1

Link to Question Paper

Q1

#include <iostream>
#include <string>

using namespace std;
@suhasksv
suhasksv / aoc-2024-day1.go
Created December 1, 2024 06:41
Aoc day 1 202r
package main
import (
"bufio"
"fmt"
"os"
"sort"
"strconv"
"strings"
)

Strings

Operations on Strings

#include <stdio.h>
#include <string.h>

int main() {
    char str1[100], str2[100];

    // Input strings

Unit 1

Febonacci Series

#include <stdio.h>

int main() {
    int n, first = 0, second = 1, next, c;

    printf("Enter the number of terms: ");
@suhasksv
suhasksv / pull_all_from_remote.sh
Created July 22, 2024 08:18
pull all the repos which are in all the nested folders by searching for .git folder
#!/bin/bash
coding_folder="$HOME/"
find "$coding_folder" -type d -name ".git" | while read repo_path; do
repo_dir=$(dirname "$repo_path")
echo "Pulling Repository: $repo_dir"
pushd "$repo_dir" >/dev/null