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
# 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
# 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
# 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
# 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
# UdacityDownload.py | |
# Python 2.7.6 | |
""" | |
Python script to download course content from udacity courses | |
- Creates folders as per course names | |
- Downloads all the zip files | |
- Extract content from zip file | |
- Finally delete the zip file | |
Multiple course content can be downloaded from list |
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
# keywordExtractor.py | |
# Python 2.7.6 | |
import requests | |
import re | |
from collections import Counter | |
""" | |
Step 1: Obtain Text | |
Step 2: Strip punctuation, special characters, etc. |
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
# OutlookMailer.py | |
# Python 2.7.6 | |
import win32com.client as com | |
outlook = com.Dispatch("Outlook.Application") | |
""" | |
Source - https://msdn.microsoft.com/en-us/library/office/ff869291.aspx | |
Outlook VBA Reference |
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 | |
# Cricinfoscraper_py2.py | |
""" | |
Simple webscraper to download cartoons from cricinfo site. | |
The url is http://www.espncricinfo.com/ci/content/story/author.html?author=333 | |
Changed the code to dynamically scroll the page to fetch more cartoons. | |
Using Splinter/ Selenium library to fetch javascript rendered content | |
""" |
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
# gistsDownloader.py | |
# Python 3.4 | |
import requests | |
username = "vinovator" | |
url = "https://api.github.com/users/" + username + "/gists" | |
resp = requests.get(url) |