Skip to content

Instantly share code, notes, and snippets.

View uzumaki-narut0's full-sized avatar
🏠
Working from home

Kumar Swapnil uzumaki-narut0

🏠
Working from home
View GitHub Profile
import json
import os
from flask import Flask
from flask import request, jsonify
from flask_restful import Resource, Api, reqparse, abort
from pymongo import MongoClient
from bson.json_util import dumps
app = Flask(__name__)
api = Api(app)
#include<bits/stdc++.h>
using namespace std;
#define tr(c,it)\
for(typeof(c.begin()) = c.begin() ; it != c.end() ; it++)
#define all(c) (c).begin(),(c).end()
#define pb push_back
#define present(c,x) (c.find(x) != c.end())
int main()
{
//code
#include<bits/stdc++.h>
using namespace std;
#define tr(c,it)\
for(typeof(c.begin()) = c.begin() ; it != c.end() ; it++)
#define all(c) (c).begin(),(c).end()
#define pb push_back
#define present(c,x) (c.find(x) != c.end())
bool mycomp(pair<int, int> p1, pair<int, int> p2){
if(p1.first == p2.first)
return(p1.second > p2.second);
var express = require('express');
var path = require('path');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http); //socket server which integrates with (mounts on) http server
var hbs = require('express-handlebars');
var handlebars = require('handlebars');
var helpers = require('handlebars-form-helpers').register(handlebars);
//app.use(express.static('public'));
#include<bits/stdc++.h>
using namespace std;
#define tr(c,it)\
for(typeof(c.begin()) = c.begin() ; it != c.end() ; it++)
#define all(c) (c).begin(),(c).end()
#define pb push_back
#define present(c,x) (c.find(x) != c.end())
bool isSafe(vector<vector <int> > board,int row, int col, int n)
{
int i,j;
#include<bits/stdc++.h>
using namespace std;
#define tr(c,it)\
for(typeof(c.begin()) = c.begin() ; it != c.end() ; it++)
#define all(c) (c).begin(),(c).end()
#define pb push_back
#define present(c,x) (c.find(x) != c.end())
void lcsBacktrack(string str1, string str2, int n, int m);
int main()
{
#include <bits/stdc++.h>
using namespace std;
bool findCycle(int n, vector<vector<int> > &v1, int src, vector<int> &visited)
{
visited[src] = 1; //processing
for(int j=0 ; j<v1[src].size() ; j++)
{
if(visited[v1[src][j]]==1)
body{
height: 100vh;
background-image:url('/myimg.png');
background-size: cover;
background-position: bottom;
}
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-family: 'Lato', sans-serif;
font-weight: 400;
font-size: 16px;
line-height: 1.7 /* 1.7 times the original line height*/
#elem{
background-image:linear-gradient(135deg, #17ead9 0%,#6078ea 100%), url('../img/logo.png');
/* make sure the opacity of gradient is lower for making the image visible */
}