Skip to content

Instantly share code, notes, and snippets.

View hussaintamboli's full-sized avatar

Hussain Tamboli hussaintamboli

View GitHub Profile
@hussaintamboli
hussaintamboli / Python3 Virtualenv Setup.md
Last active February 14, 2018 09:03 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@hussaintamboli
hussaintamboli / urlparse.py
Created June 22, 2016 05:57 — forked from zhenyi2697/urlparse.py
Python: urlparse demo
#!/usr/bin/python
# The urlparse module provides functions for breaking URLs down into their
# component parts, as defined by the relevant RFCs.
from urlparse import urlparse
# PARSING
parsed = urlparse('http://user:pass@NetLoc:80/path;parameters?query=argument#fragment')
signature = "234kkkdkfkdfkeekke-32kd-2349kdk3-dk2"
timeStamp = "2013:10:16 16:21:08"
accessToken = "89389kdfk-23499dkkkkjkk23ee"
{ requestedParams }
loginUrl = wp login url to redirect if access token expired
accountId = 1
currency = "USD"
countryId = 2
billingFrequency = 1 # in months. Set only if any recurring item is purchased. recurring items = licenses or incoming numbers