Skip to content

Instantly share code, notes, and snippets.

View raghavddps2's full-sized avatar
🎯
Focusing

Raghav Maheshwari raghavddps2

🎯
Focusing
View GitHub Profile
# Importing the Flask Class - Instance of this class will be our WSGI application.
# Web Server Gateway Interface
from flask import Flask, request, jsonify, session
'''
The line below will create an instance of the Flask class - The First argument is the
name of the application's module or package.
'''
app = Flask(__name__)
# Importing the Flask Class - Instance of this class will be our WSGI application.
# Web Server Gateway Interface
from flask import Flask, request, jsonify
from firebase_admin import credentials, firestore, initialize_app
'''
The line below will create an instance of the Flask class - The First argument is the
name of the application's module or package.
'''
from flask import Flask, request, jsonify
app = Flask(__name__)
cryptos = dict()
@app.route('/add',methods=["POST"])
def create():
print("hi")
try:
symbol = request.json["symbol"]
@raghavddps2
raghavddps2 / os_api.py
Created April 16, 2021 12:14
This is a simple demonstartion of interacting with the os api.
import os
# This gets the current working directory!
current_directory = os.getcwd()
# This lists the files/folders in the directory and loops over them!
for entry in os.listdir(current_directory):
print(entry)
@raghavddps2
raghavddps2 / Apis.md
Created April 16, 2021 12:12
API's explored during UACE IT webinar
@raghavddps2
raghavddps2 / APIs.md
Created April 16, 2021 12:11
This Gist is about api's used during the UACE-It webinar!
#include <stdio.h>
#include <omp.h>
#include <math.h>
void main(){
omp_set_num_threads(8);
int n;
printf("Enter num");
scanf("%d",&n);
long fact=1,fact1=1;
static int SumCousins(TreeNode root, int k) throws java.lang.Exception
{
if (root == null)
return -1;
if (root.data == k)
{
return -1;
}
def longestSubarray(A, N, X):
maxLen = 0
beginning = 0
window = {}
start = 0
@raghavddps2
raghavddps2 / Basic_Networks.md
Created November 18, 2020 08:21
This is a tutorial on very basics of computer Networks. It is not an in depth tutorial that covers everything. Just some bare necessary stuff software engineers should know!
  1. Computer Network :

    1. A bunch of devices connected to each other. Computers need a way to communicate with each other.

    2. The purpose is basically to share information from one computer to another. At the most basic level, it is through cables, Waves etc.

    3. This data can be documents, pictures, videos etc.

    4. Netlfix is 32% of the entire bandwidth consumption in the United States.