Skip to content

Instantly share code, notes, and snippets.

View innovatorved's full-sized avatar
:octocat:
Remote Developer

Ved Gupta innovatorved

:octocat:
Remote Developer
View GitHub Profile
@innovatorved
innovatorved / vercel.md
Created August 14, 2024 13:31 — forked from ky28059/vercel.md
Deploying to Vercel from an organization for free using GitHub actions

This gist was partially inspired by this blog about Next.js Vercel CI with GitHub actions.

The problem

An easy way to deploy and host websites for free is to use GitHub pages. If you've deployed a Next.js project to GitHub pages, you may have used a GitHub action similar to this in the past to automatically redeploy the site when a new commit is pushed:

# gh-pages-merge.yml
name: Deploy to gh-pages on merge
on:
  push:
@innovatorved
innovatorved / Code.md
Created July 2, 2023 16:06
Sanno Coding Question

Functions

1 Write a program in C program to check whether a number can be expressed as sum of two prime numbers.

#include <stdio.h>
#include <stdbool.h>

bool isPrime(int num)
@innovatorved
innovatorved / python-console-color-codes.ipynb
Created October 4, 2021 11:03
python-console-color-codes.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@innovatorved
innovatorved / README.md
Created July 21, 2021 07:03
Change txt file into Table view See README.md

My text file have content like this- {"Id":123, "Name":"xyz"} {"Id":124, "Name":"abc"} {"Id":125,"Name":"kaggle"}

My desired output- Id Name 123 xyz 124 abc 125 Kaggle

@innovatorved
innovatorved / Sanfoundry-mcq-extractor.py
Last active October 15, 2023 16:05
Extract MCQ Questions of Specific topic from sanfoundry.com Web Scrapping
#!/usr/bin/env python3
__author__ = "Ved Prakash Gupta"
__copyright__ = f"Copyright (C) 2021 {__author__}"
__license__ = "Public Domain"
__version__ = "1.0"
from bs4 import BeautifulSoup
import requests
import sys