Skip to content

Instantly share code, notes, and snippets.

View deehzee's full-sized avatar

Debajyoti Nandi deehzee

View GitHub Profile
@jrjames83
jrjames83 / connect.py
Created March 29, 2016 15:02
remote ssh tunnel python
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",
@nickgravish
nickgravish / rpy2_install.md
Last active June 8, 2017 11:08
Rpy2 installation annoyances

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

@debasishg
debasishg / gist:8172796
Last active May 10, 2024 13:37
A collection of links for streaming algorithms and data structures

General Background and Overview

  1. Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
  2. Models and Issues in Data Stream Systems
  3. Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
  4. Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
  5. [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&rep=rep1&t
@dupuy
dupuy / README.rst
Last active June 3, 2024 23:01
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

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.

@justinabrahms
justinabrahms / colortest.py
Created June 26, 2011 17:10 — forked from graven/colortest.py
Small utility to test terminal support for 256-color output.
#!/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."
print
colored = [0] + [0x5f + 40 * n for n in range(0, 5)]
colored_palette = [
"%02x/%02x/%02x" % (r, g, b)
for r in colored