Skip to content

Instantly share code, notes, and snippets.

View priyanshudevsingh's full-sized avatar

Priyanshu Singh priyanshudevsingh

  • National Institute Of Technology (Saraikela Kharsawan, Jharkhand) (Saraikela Kharsawan, Jharkhand)
  • Jamshedpur
View GitHub Profile
#include <bits/stdc++.h>
using namespace std;
vector<int> find_min_paths_from_start(int start, int outpost, const vector<vector<int>>& graph, int N) {
vector<int> dp(1 << N, INT_MAX);
queue<pair<int, int>> q;
1. Fix with Nginx Configuration
To handle this issue, configure the server (e.g., Nginx) to always serve index.html for any unmatched route:
server {
listen 80;
server_name frontend.example.com;
root /usr/share/nginx/html;
index index.html;
@priyanshudevsingh
priyanshudevsingh / gist:0d4381d3d0b47033cd84b555b585faf1
Created September 7, 2024 07:19
SonyLIV's Strategic Partnership with TCS: Revolutionizing the OTT Experience
The media streaming industry has witnessed tremendous growth in recent years, with millions of users turning to Over-The-Top (OTT) platforms for their entertainment needs. One such key player in the Indian OTT market is SonyLIV. To stay ahead in the fiercely competitive landscape, SonyLIV has entered a strategic partnership with Tata Consultancy Services (TCS), aimed at transforming customer experience and driving business growth.
The Partnership: A Collaborative Effort
SonyLIV, a subsidiary of Sony Corp., has collaborated with TCS to create a cutting-edge digital platform that offers a seamless experience to its users. This strategic partnership focuses on leveraging TCS’s next-gen digital capabilities, such as AI and machine learning, to redefine the platform’s transformation roadmap.
By combining SonyLIV's premium content offerings with TCS’s expertise in digital technologies, the goal is to innovate the business model, increase customer engagement, and improve the overall user experience. The collaborat
const express = require('express');
const mongoose = require('mongoose');
const bcrypt = require('bcrypt');
const User = require('./models/userSchema');
const app = express();
const PORT = 3000;
// Connect to MongoDB
mongoose.connect('mongodb://127.0.0.1:27017/myapp', {