Skip to content

Instantly share code, notes, and snippets.

View ianpreston's full-sized avatar

Ian Preston ianpreston

View GitHub Profile
In [1]: import lxml.html
In [2]: import requests
In [3]: x = """<?xml version="1.0" encoding="utf-8"?><sitemap><changefreq>Hello world</changefreq></sitemap>"""
In [4]: a = lxml.html.fromstring(x)
In [5]: a
Out[5]: <Element sitemap at 0x10517d050>
@ianpreston
ianpreston / kernel.json
Created September 19, 2015 21:39
Jupyter configuration for gevent
{
"display_name": "IPython 2 w/gevent",
"language": "python",
"argv": [
"python",
"-c", "from gevent.monkey import patch_all; patch_all(thread=False); from IPython.kernel.zmq.kernelapp import main; main()",
"-f",
"{connection_file}"
]
}

Cask Tutorial

A quick introduction to most of Cask's features and usage patterns.

Installation

See the README for installation instructions.

Quickstart