Skip to content

Instantly share code, notes, and snippets.

@terotil
terotil / .gitignore
Last active January 8, 2023 19:37
JavaScript implementation of Bernoulli numbers algorithm as described by Ada Lovelace
node_modules/
*~
@tessus
tessus / teksavvy_usage.py
Created July 31, 2014 05:40
retrieve TekSavvy data usage via API key
#!/opt/local/bin/python
import httplib, json
APIKEY = "YOUR_API_KEY_HERE"
headers = {"TekSavvy-APIKey": APIKEY}
conn = httplib.HTTPSConnection("api.teksavvy.com")
conn.request('GET', '/web/Usage/UsageSummaryRecords?$filter=IsCurrent%20eq%20true', '', headers)
response = conn.getresponse()