Skip to content

Instantly share code, notes, and snippets.

@josef-pkt
josef-pkt / try_negbin_cluster.py
Created December 9, 2013 02:44
cluster robust standard errors for Negative Binomial
# -*- coding: utf-8 -*-
"""
Created on Sun Dec 08 19:14:58 2013
Author: Josef Perktold, based on example by John Beieler
Not verified!
"""
@aanastasiou
aanastasiou / README.MD
Created July 28, 2013 18:32
Generate a Cypher query to store a Python Networkx directed graph

Exporting a Networkx graph as a Cypher query

This little project defines a function that can be used to construct a Cypher query which when executed against a Neo4j database server will store the graph to the server.

Background

  • A Graph is an abstract mathematical model composed of Nodes connected through Edges that can be used to describe complex systems composed of a set of parts (corresponding to nodes) and their connections (corresponding to edges).
  • Examples of graphs are road networks (junctions connected via roads), electronic circuit networks (components and their connections) and others
  • Networkx is an excellent Python module for manipulating such Graph objects of any kind.
  • Neo4j is a graph database. It uses the Graph as a data model to store such objects to a data store.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: