This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
height: 100vh; | |
background-image:url('/myimg.png'); | |
background-size: cover; | |
background-position: bottom; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*{ | |
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*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 */ | |
} |
OlderNewer