Skip to content

Instantly share code, notes, and snippets.

View PragatiVerma18's full-sized avatar
🎯
Focusing

Pragati Verma PragatiVerma18

🎯
Focusing
View GitHub Profile
@PragatiVerma18
PragatiVerma18 / complete_code_overview.py
Last active December 4, 2024 15:14
How to Scrape Products from a Page with infinite scroll via "Load more" button
from selenium import webdriver
from selenium.webdriver.common.by import By
from bs4 import BeautifulSoup
import time
import csv
# Set up the WebDriver (make sure you have the appropriate driver installed, e.g., ChromeDriver)
driver = webdriver.Chrome()
@PragatiVerma18
PragatiVerma18 / webpack.config.js
Created May 22, 2021 07:58
VueJS Starter Plugin for Adobe Photoshop - webpack.config.js
const { VueLoaderPlugin } = require("vue-loader");
const path = require("path");
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
entry: "./src/main.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "main.js",
},
@PragatiVerma18
PragatiVerma18 / manifest.json
Created May 22, 2021 07:57
VueJS Starter Plugin for Adobe Photoshop - manifest.json
{
"id": "com.adobe.uxp.starter.vue",
"name": "UXP Vue Starter Plugin",
"version": "1.0.0",
"main": "index.html",
"manifestVersion": 4,
"host": {
"app": "PS",
"minVersion": "22.0.0"
},
@PragatiVerma18
PragatiVerma18 / index.html
Created May 22, 2021 07:56
VueJS Starter Plugin for Adobe Photoshop - index.html
<!DOCTYPE html>
<html>
<head>
<script src="./main.js"></script>
</head>
<style>
div {
margin: auto;
}
</style>
@PragatiVerma18
PragatiVerma18 / webpack.config.js
Created May 22, 2021 07:53
The files required for building your first Adobe Photoshop and XD Plugin using VueJS - webpack.config.js contains config settings for webpack
const { VueLoaderPlugin } = require("vue-loader");
const path = require("path");
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
entry: "./src/main.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "main.js",
libraryTarget: "commonjs2",
@PragatiVerma18
PragatiVerma18 / manifest.json
Created May 22, 2021 07:52
The files required for building your first Adobe Photoshop and XD Plugin using VueJS - mainfest.json
{
"id": "com.adobe.xd.starter.vue",
"name": "Vue Starter Plugin XD",
"version": "1.0.0",
"host": {
"app": "XD",
"minVersion": "36.0.0"
},
"icons": [
{
@PragatiVerma18
PragatiVerma18 / package.json
Created May 22, 2021 07:50
The files required for building your first Adobe Photoshop and XD Plugin using VueJS - package.json has info about all dependencies
{
"name": "vue_starter_plugin",
"version": "1.0.0",
"main": "main.js",
"scripts": {
"watch": "nodemon -w src -e js,vue,css -w webpack.config.js -x yarn build",
"build": "webpack --mode development"
},
"license": "none",
"private": true,
@PragatiVerma18
PragatiVerma18 / main.js
Created May 22, 2021 07:47
The files required for building your first Adobe Photoshop and XD Plugin using VueJS - main.js contains code for the dialog and the modal
const styles = require("./styles.css");
const Vue = require("vue").default;
const hello = require("./hello.vue").default
const { Text, Color } = require("scenegraph");
let dialog;
function getDialog() {
if (dialog == null) {
document.body.innerHTML = `<dialog><div id="container"></div></dialog>`
@PragatiVerma18
PragatiVerma18 / hello.vue
Created May 22, 2021 07:45
The files required for building your first Adobe Photoshop and XD Plugin using VueJS - hello.vue contains the code for basic counter functionality
<template>
<form style="width: 300px;">
<h1>
{{ message }}
</h1>
<p>
Button has been clicked {{ count }} times.
</p>
<footer>
<button uxp-variant="cta" v-on:click="increment">Click me</button>
@PragatiVerma18
PragatiVerma18 / hello.vue
Created April 13, 2021 16:31
The files required for building your first Adobe Photoshop and XD Plugin using VueJS.
<template>
<form style="width: 300px;">
<h1>
{{ message }}
</h1>
<p>
Button has been clicked {{ count }} times.
</p>
<footer>
<button uxp-variant="cta" v-on:click="increment">Click me</button>