Skip to content

Instantly share code, notes, and snippets.

View piyushgarg-dev's full-sized avatar
🎯
Coding

Piyush Garg piyushgarg-dev

🎯
Coding
View GitHub Profile
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import random
import sys
def print_same_line(text):
sys.stdout.write('\r')
sys.stdout.flush()
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import {BrowserRouter} from 'react-router-dom'
ReactDOM.render(
<React.StrictMode>
import React from 'react';
import { Switch, Route } from 'react-router-dom'
import './App.css';
import Conatct from './pages/contact'
import Blog from './pages/blog'
import Index from './pages/index'
function App() {
return (
{
"name": "myapi",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
// Import the Express using require() module
const express = require('express');
// Initalize express app
const app = express();
// Lets create Fake Data for api
const userData = [
{
id: 1,
// Endpoint 1
app.get('/api', function(req, res){
res.send('Welcome to our API')
})
// Endpoint 2
app.get('/api/users', function(req, res){
res.json(userData);
})
{
"start":{
"prefix": "!start",
"body": [
"<html>",
"</html"
],
"description": "Basic Starter Template"
}
}
{
"start":{
"prefix": "!start",
"body": [
"<html>",
"</html"
],
"description": "Basic Starter Template"
},
"h1":{
{
"name": "bootstrap-snippets",
"displayName": "bootstrap-snippets",
"description": "A simple Bootstrap snippets",
"version": "0.0.1",
"engines": {
"vscode": "^1.44.0"
},
"categories": [
"Snippets"
{
"name": "bootstrap-snippets",
"displayName": "bootstrap-snippets",
"description": "A simple Bootstrap snippets",
"publisher": "piyushgarg",
"version": "0.0.1",
"engines": {
"vscode": "^1.44.0"
},
"categories": [