Skip to content

Instantly share code, notes, and snippets.

@MontyThibault
MontyThibault / showdata.py
Last active January 12, 2016 20:21
Python: ShowData
# This function prints out all of the values and sub-values in any variable, including
# lists, tuples and classes. It's not very efficient, so use it for testing/debugging
# purposes only. Examples are below:
#-------------------------------------------------------------------------------------
# ShowData(range(10))
# (list)
# (int) 0
@windbg
windbg / zerologger.py
Created March 4, 2012 03:01 — forked from gwik/zerologger.py
Python logger ZeroMQ, Gevent, CouchDB
# encoding: utf-8
"""
A python logging Handler that use ZeroMQ (ØMQ).
+------+ +------+ +-------+
| app1 | | app2 | | app X |
+------+ +------+ +-------+
| PUSH | PUSH | PUSH
| | |
@windbg
windbg / yahoo.py
Created February 11, 2012 01:53
example of providers/yahoo
#!/usr/bin/env python
#coding=utf-8
import datetime
import os
import sys
from tornado.curl_httpclient import CurlAsyncHTTPClient as AsyncHTTPClient
from tornado import ioloop
ROOT_PATH = os.path.join(os.path.realpath(os.path.dirname(__file__)), '..')