Skip to content

Instantly share code, notes, and snippets.

View raysandeep's full-sized avatar
🌏
Making the besttt

Sai Sandeep Rayanuthala raysandeep

🌏
Making the besttt
View GitHub Profile
python -m django startproject video_demo
python -m virtualenv env
#!/bin/bash
########################################################
##### USE THIS FILE IF YOU LAUNCHED UBUNTU #####
########################################################
sudo apt update
sudo apt install nginx -y
sudo ufw allow 'Nginx HTTP'
sudo su
sudo systemctl start nginx
systemctl status nginx
import requests
import json
def main(token):
payload = {}
headers= {
'Authorization': 'Token '+token
}
url = "https://api.github.com/user"
@raysandeep
raysandeep / Main.cpp
Last active January 18, 2020 07:50
Stack Operations Remove Highest Frequencies
#include <bits/stdc++.h>
using namespace std;
#include<list>
int mostFrequent(int arr[], int n)
{
// Sort the array
sort(arr, arr + n);
// find the max frequency using linear traversal