Skip to content

Instantly share code, notes, and snippets.

View gregjurman's full-sized avatar

G gregjurman

View GitHub Profile
@gregjurman
gregjurman / gist:3190863
Created July 27, 2012 22:43 — forked from dtgay/gist:3190781
Problem with Stack Exchange API JSON data
stack_exchange_api = 'https://api.stackexchange.com/2.1'
request_url = "{0}/users/{1}/associated".format(
stack_exchange_api, usernames['stack_exchange'])
api_request = urllib2.Request(
request_url,
headers={"Accept": "application/json"})
api_z_response = urllib2.urlopen(api_request)
from zlib import decompress, MAX_WBITS
api_response = decompress(api_z_response.read(), 16+MAX_WBITS)
se_accounts_json = json.loads(api_response)
Dont:
\begin{figure}
\caption{AND Gate Array}
\lstinputlisting[language=VHDL,numbers=left,breaklines=true,basicstyle=\footnotesize]{and44gate.vhd}
\end{figure}
\pagebreak
DO: