Skip to content

Instantly share code, notes, and snippets.

View eventuallyc0nsistent's full-sized avatar

:pie: eventuallyc0nsistent

View GitHub Profile
@eventuallyc0nsistent
eventuallyc0nsistent / filter.py
Last active June 7, 2016 19:32 — forked from thewarpaint/filter.js
Angular filter to convert numbers to thousand suffixes (1234 > 1.2k)
"""
Source: https://gist.github.com/thewarpaint/889690aeb21a8dfd7aba
"""
from __future__ import division
def number_suffixes(number):
suffixes = ['k', 'M', 'G', 'T', 'P', 'E']
if not isinstance(number, int):
return number
if number < 1000:
# DocuSign API Walkthrough 07 (PYTHON) - Embedded Sending
import sys, httplib2, json;
#enter your info:
username = "***";
password = "***";
integratorKey = "***";
templateId = "***";
authenticateStr = "<DocuSignCredentials>" \