One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| // www redirection to non-www (SEO) | |
| if (window.location.host.startsWith("www")) { | |
| let host = window.location.host; | |
| window.location.replace(`${window.location.protocol}//${host.substring(4, host.length)}${window.location.pathname}`); | |
| } |
| app.post('/paynow', [parseUrl, parseJson], (req, res) => { | |
| if (!req.body.amount || !req.body.email || !req.body.phone) { | |
| res.status(400).send('Payment failed') | |
| } else { | |
| var params = {}; | |
| params['MID'] = config.PaytmConfig.mid; | |
| params['WEBSITE'] = config.PaytmConfig.website; | |
| params['CHANNEL_ID'] = 'WEB'; | |
| params['INDUSTRY_TYPE_ID'] = 'Retail'; | |
| params['ORDER_ID'] = 'TEST_' + new Date().getTime(); |
| .primary-accent-rounded-button{ | |
| @include roundedBtn($accentPrimary, $white); | |
| } | |
| .primary-grey-rounded-button{ | |
| @include roundedBtn($greyLight, $greyDarkest); | |
| } | |
| .primary-accent-circle-button{ | |
| @include circularBtn($accentPrimary, $white); |
| import requests | |
| from bs4 import BeautifulSoup | |
| import csv | |
| #FOR WRITTING RESULT IN CSV FILE | |
| fw = csv.writer(open('shank.csv', 'w')) | |
| fw.writerow('link') | |
| #FOR WEBSITE SCRAPPING | |
| con = BeautifulSoup(open("C:/Users/Shank/Desktop/fkart.xml")) |
| import threading | |
| import time | |
| arr =[2, 4, 6, 8, 9] | |
| def calc_square(number): | |
| for n in number: | |
| num = n*n | |
| print('Square of ' + str(n) + ' is ' + str(num)) | |
| #time.sleep(2) |