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
# A simple program to calculate actual withdraw amount of payoneer | |
payoneerCut = 2 | |
rate = int(input('Enter currency rate of USD -> YOUR_NATIVE_CURRENCY : ')) | |
amount = int(input('Enter amount to withdraw (in YOUR_NATIVE_CURRENCY): ')) | |
rate = (rate - ((payoneerCut / 100) * (rate))) | |
print('New Rate of USD -> YOUR_NATIVE_CURRENCY : %.2f' % (rate)) | |
print("You`ll recieve: %.2f (in YOUR_NATIVE_CURRENCY)" % (rate * amount)) |
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
# A python module which creates .zip & .rar archives of subfolders of a given path | |
def subFolders(folder_path): | |
'Returns list of subfolders of given path' | |
import os | |
foldersList = list() | |
print('Looking for subfolder of : %s' % (folder_path)) | |
for i in os.listdir(folder_path): | |
if(os.path.isdir(i)): | |
print('%s' % (i), end=', ') |
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
# A simple script to prettify pdf file names | |
def listAllPdfFiles(dirPath): | |
'Return list of all pdf files of provided path' | |
import os | |
pdfFiles = list() | |
print('Looking for pdf files...') | |
for f in os.listdir(): | |
if(os.path.isfile(f) and f.endswith('.pdf')): | |
print('%s' % f, end=", ") |
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
/* | |
It only scraps first 100 emails because other emails are not visible. | |
Whenever I will have time, i will try to work around this problem | |
Tested on Firefox 80.0.1 | |
Not sure about other browsers, (theoretically it should work) | |
*/ | |
// xpath of div containing emails in a google form | |
allDivs = $x("//*[contains(text(),'Email') and @class='freebirdAnalyticsViewQuestionTitle']/ancestor::div[@class='freebirdAnalyticsViewAnalyticsHover']") | |
// get innerText which is essentially emails of all correspondents and also contains some other irrelevant text | |
uglyData = allDivs[0].innerText.split('\n') |
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
/* | |
I use this script to scrap video titles of a playlist of my competitor and | |
then I use those keywords in my playlist videos too. | |
Tested on Firefox 80.0.1 | |
Not sure about other browsers | |
*/ | |
// get div containing playlist items | |
playlist = document.getElementsByTagName('ytd-playlist-video-renderer') |
NewerOlder