Starting with R installed from the download on the CRAN website.
install rpy2 from source using
python setup.py build install
running the unit test gives
from sshtunnel import SSHTunnelForwarder | |
import psycopg2 | |
#http://stackoverflow.com/questions/22046708/ | |
#https://github.com/pahaz/sshtunnel | |
#at least wrap in a try except block | |
server = SSHTunnelForwarder( | |
('remote.server.ip', remote.port), | |
ssh_username="jeff", |
Starting with R installed from the download on the CRAN website.
install rpy2 from source using
python setup.py build install
running the unit test gives
GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
#!/usr/bin/env python | |
# Ported to Python from http://www.vim.org/scripts/script.php?script_id=1349 | |
print "Color indexes should be drawn in bold text of the same color." | |
colored = [0] + [0x5f + 40 * n for n in range(0, 5)] | |
colored_palette = [ | |
"%02x/%02x/%02x" % (r, g, b) | |
for r in colored |