Skip to content

Instantly share code, notes, and snippets.

@wbrgss
wbrgss / cvdownload.py
Created December 4, 2016 20:17
GetForm File Downloader
import requests
from requests import get
import os
import xlrd
# enter your GetForm auth details
payload = {
'username': '[usename]',
'password': '[password]'
@wbrgss
wbrgss / hex_to_rgb.py
Created July 8, 2019 19:09 — forked from matthewkremer/hex_to_rgb.py
Python Hex Code to RGB Value
def hex_to_rgb(hex):
hex = hex.lstrip('#')
hlen = len(hex)
return tuple(int(hex[i:i+hlen/3], 16) for i in range(0, hlen, hlen/3))
@wbrgss
wbrgss / hex_to_rgba.py
Created July 8, 2019 19:09 — forked from matthewkremer/hex_to_rgb.py
Python Hex Code to RGB Value
def hex_to_rgba(hex, alpha=1):
hex = hex.lstrip('#')
hlen = len(hex)
return tuple(int(hex[i:i+hlen//3], 16) for i in range(0, hlen, hlen//3)) + (alpha,)