Skip to content

Instantly share code, notes, and snippets.

View yashppawar's full-sized avatar
🎧
Learning

Yash Pawar yashppawar

🎧
Learning
View GitHub Profile
@yashppawar
yashppawar / avail-list.c
Last active December 27, 2022 11:19
Revolution
#include <stdio.h>
#include <stdlib.h>
#define AVAILLISTMAX 100
struct Node // Creating a Node
{
int data;
struct Node *next;
};
@yashppawar
yashppawar / suggested-1.sh
Created June 9, 2022 13:43
Linux Basics Micro Project
# Write a shell program to do the following
# 1. Take first name as input from user
# 2. Take second name as input from user
# 3. Display both names individualy
# 4. Display the message "Welcome $first_name and $second_name"
# 5. Redirect this output to a file
(
# Input First Name
echo -n "Enter first person's name: "
@yashppawar
yashppawar / bubble.ipynb
Created December 21, 2021 10:44
bubble.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yashppawar
yashppawar / download_file.py
Created December 21, 2021 00:21
Using python to download files over the internet
import requests
from tqdm import tqdm
def download_file(filename, url):
chunkSize = 1024
r = requests.get(url, stream=True)
with open(filename, 'wb') as f:
pbar = tqdm( unit="B", total=int(r.headers['Content-Length']) )
@yashppawar
yashppawar / e.py
Created October 9, 2021 12:06
finding the value of e (eulers number) using limits and approaching, in python.
import maths
# solving for the value of e using approaching.
def e(num: int) -> int:
return math.pow(1 + 1 / num, num)
for i in range(1, int(1e10), 1000):
# slowly aproaching towards the value of e
print(f"{i=} {e=}")
@yashppawar
yashppawar / creating-own-model.ipynb
Created July 3, 2021 13:02
Attempting to create a custom ML model using scikit learn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.