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
| let express = require("express"); | |
| let mysql = require("mysql"); | |
| const Sequelize = require("sequelize"); | |
| let server = express(); | |
| const port = 3000; | |
| const sequelize = new Sequelize("mysql://root:*******@localhost:3306/CRUD"); | |
| const Employee = sequelize.define("Employees", { |
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 xlrd | |
| from xlrd.sheet import ctype_text | |
| # Give the location of the file | |
| loc = ("/home/karthikvarma/python/img.xlsx") | |
| # To open | |
| wb = xlrd.open_workbook(loc) | |
| sheet = wb.sheet_by_index(0) |
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
| else if (Obj.diff == true) { | |
| // creating a promise to insert two transaction records | |
| let promise = new Promise(function(resolve, reject) { | |
| setTimeout(() => resolve("done!"), 1000); | |
| }) | |
| .then((firstIteration, error) => { | |
| let firstMonthFromDate = Obj.monthFrom; | |
| let firstMonthToDate = Obj.monthTo; | |
| Transaction.create({ |
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
| ❯ node app.js | |
| dB connected successfully! | |
| (node:58162) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. | |
| <ref *1> Request { | |
| _events: [Object: null prototype] { | |
| error: [Function: bound ], | |
| complete: [Function: bound ], | |
| pipe: [Function (anonymous)] | |
| }, | |
| _eventsCount: 3, |
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
| { | |
| config: { | |
| url: 'https://api.coindcx.com/exchange/v1/orders/create', | |
| method: 'post', | |
| headers: { | |
| Accept: 'application/json, text/plain, */*', | |
| 'Content-Type': 'application/x-www-form-urlencoded', | |
| 'X-AUTH-APIKEY': 'apikey', | |
| 'X-AUTH-SIGNATURE': '69725f267d127ab9078a4893b3ad7869431e766e1f3dd9cb8770b83d57a8e840', | |
| 'User-Agent': 'axios/0.19.2' |
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
| <html> | |
| <head> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script> | |
| <script> | |
| function loginFunction() { | |
| axios.get("https://public.coindcx.com/market_data/trade_history?pair=I-DGTX_INR&limit=1").then(function(response) { | |
| console.log("Response : " + JSON.stringify(response.data)); | |
| }) | |
| } | |
| </script> |
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
| <!-- <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>XSS Redirect Attack Demo</title> | |
| <style> | |
| body { font-family: Arial, sans-serif; margin: 20px; background: #2c3e50; color: white; } | |
| .result { padding: 10px; margin: 5px 0; border-radius: 5px; } | |
| .success { background: #27ae60; } | |
| .danger { background: #e74c3c; } | |
| .warning { background: #f39c12; } |
OlderNewer