Skip to content

Instantly share code, notes, and snippets.

View karngyan's full-sized avatar
🛌
working from my bed

Karn karngyan

🛌
working from my bed
View GitHub Profile
@karngyan
karngyan / vvii.cpp
Created May 24, 2018 00:56
Vector of Vector of Pairs
/*
@author: karngyan
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef std::vector<ll> vll;
@karngyan
karngyan / webdev_online_resources.md
Created July 17, 2018 16:06 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
#!/usr/bin/env python
'''
CC : Yasho Bhaiya
'''
from selenium import webdriver
import sys
webbrowser = webdriver.Firefox()
webbrowser.get("https://172.16.1.1:8090/httpclient.html")
#!/usr/bin/env python
'''
CC: Yasho Bhaiya
'''
from selenium import webdriver
import time, sys
webbrowser = webdriver.Firefox()
webbrowser.get("https://172.16.1.1:8090/")
# time.sleep(3)
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#define N 110
double old_x[N];
double new_x[N];
double a[N][N];
double b[N];
double e = 0.0001;
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#define N 110
double old_x[N];
double new_x[N];
double a[N][N];
double b[N];
double e = 0.0001;
@karngyan
karngyan / Langrange_Interpolation.c
Created February 19, 2019 11:01
Shows Simplified Polynomial as well.
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<stdbool.h>
#define N 1010
typedef struct pt
{
double x , y;
} pt;
#include<stdio.h>
#include<stdlib.h>
#define N 1010
#define INF 1e5
typedef struct pt
{
double x , y;
} pt;
@karngyan
karngyan / CPU Scheduling Algorithm Template.c
Last active March 14, 2019 11:30
C Linked Queue implementation
/*
Author: @karngyan
Complete the run_scheduler function as per your requiremnts
tweak take_input function as required
To Do:
- Add function to print gantt chart
- Add function to print Process Table
*/
/*
Author: @karngyan
Roll: BE/10546/17
Date: April 5, 2019
Language: C++ 14 Recomended
*/
#include<bits/stdc++.h>