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
# pwdhash.py | |
# Python 2.7.6 | |
import uuid | |
import hashlib | |
""" | |
source - http://pythoncentral.io/hashing-strings-with-python/ | |
""" |
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
# checksumGenerator.py | |
# Python 2.7.6 | |
""" | |
Script to generate MD5 checksum for a given file | |
Also see comparison of performance with iterator implementation | |
""" | |
import hashlib | |
import time |
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
# simpleLP1.py | |
# Python 2.7.6 | |
""" | |
Python script to solve Linear Programming problems | |
Uses Pulp library | |
Problem statement: (src - http://fisher.osu.edu/~croxton.4/tutorial/) | |
1) Objective Function - |
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
# simpleLP2.py | |
# Python 2.7.6 | |
""" | |
Python script to solve Linear Programming problems | |
Uses Pulp library | |
Problem statement: (src - http://fisher.osu.edu/~croxton.4/tutorial/) | |
ChemCo produces two fertilizers, FastGro and ReallyFastGro. Each is made of | |
a mix of two growth agents. FastGro is a 50/50 mix of the two, and it sells |
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
# ChecksumGeneratorV2.py | |
# Python 2.7.6 | |
""" | |
Generate MD5 checksum for all files placed under a folder | |
""" | |
import hashlib | |
import os |
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
# checkDuplicates.py | |
# Python 2.7.6 | |
""" | |
Given a folder, walk through all files within the folder and subfolders | |
and get list of all files that are duplicates | |
The md5 checcksum for each file will determine the duplicates | |
""" | |
import os |
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
# imapMailboxMiner.py | |
# Python 2.7.6 | |
""" | |
Connect to IMAP4 server and fetch mails | |
http://www.voidynullness.net/blog/2013/07/25/gmail-email-with-python-via-imap/ | |
""" | |
import imaplib # Library to interact with IMPAP server | |
import sys |
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
# tk_PromptPassword.py | |
# Python 2.7.6 | |
""" | |
Reusable library which pops tkinter window to prompt password | |
""" | |
import Tkinter as tk | |
import tkMessageBox as tkm # To show warning/ error messages | |
import logging |
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 2.7.6 | |
# PdfAdapter.py | |
""" Reusable library to extract text from pdf file | |
Uses pdfminer library; For Python 3.x use pdfminer3k module | |
Below links have useful information on components of the program | |
https://euske.github.io/pdfminer/programming.html | |
http://denis.papathanasiou.org/posts/2010.08.04.post.html | |
""" |
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
# world_t20_itinerary.py | |
# Python 2.7.6 | |
""" | |
Scrap Workd T20 schedule from ICC website using BeautifulSoup & Requests | |
Load the schedule into an excel file using pandas | |
Format the excel file using openpyxl | |
- Apply border, wrap text and color headers | |
- Highlight India matches | |
""" |