// npm i multer
// make a folder before uploading the images
// server.js
const express = require("express");
const multer = require("multer");
const path = require("path");
const app = express();
This file contains hidden or 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
| const { app, BrowserWindow } = require("electron"); | |
| function createWindow() { | |
| let mainWindow = new BrowserWindow({ | |
| width: 800, | |
| height: 600, | |
| webPreferences: { | |
| contextIsolation: true, | |
| nodeIntegration: true, | |
| }, |
This file contains hidden or 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
| use test; | |
| CREATE TABLE student_detail ( | |
| name VARCHAR(10), | |
| roll_no INT, | |
| age INT | |
| ); | |
| CREATE TABLE student_marks ( | |
| roll_no INT, |
This file contains hidden or 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
| pm.test("Set Access Token", () => { | |
| pm.expect(pm.response.code).to.equal(201) | |
| const jsonData = JSON.parse(responseBody); | |
| console.log("JSJS: ", jsonData) | |
| pm.collectionVariables.set("ACCESS_TOKEN", jsonData.access_token); | |
| }) |
This file contains hidden or 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
| { | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "server.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1", | |
| "start": "node server.js" | |
| }, | |
| "engines": { | |
| "node": "14.16.1" |
This file contains hidden or 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 re | |
| EMAIL_REGEX = r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" | |
| def is_email_valid(email): | |
| if(re.search(EMAIL_REGEX, email)): | |
| return True | |
| else: | |
| return False |
This file contains hidden or 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
| [ | |
| { | |
| "keys": ["alt+up"], "command": "swap_line_up" | |
| }, | |
| { | |
| "keys": ["alt+down"], "command": "swap_line_down" | |
| }, | |
| { | |
| "keys": ["ctrl+shift+down"], "command": "duplicate_line" | |
| }, |
This file contains hidden or 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
| # Python Method to get the Value from nested dictionary | |
| from functools import reduce | |
| def deep_get(dictionary, keys, default=None): | |
| return reduce(lambda d, key: d.get(key, default) if isinstance(d, dict) else default, keys.split("."), dictionary) | |
| person = {'person': {'name': {'first': 'John'}}} |
This file contains hidden or 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
| vscode: | |
| extensions: | |
| - streetsidesoftware.code-spell-checker | |
| - codezombiech.gitignore | |
| - eamodio.gitlens | |
| - yzhang.markdown-all-in-one | |
| - esbenp.prettier-vscode |
OlderNewer