This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
export PS1="🐠 \[\e[95m\]\u\[\e[m\]:\[\e[92m\]\w\[\e[m\]\\$ \$(parse_git_branch)\n>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cassandra.cluster import Cluster | |
from cassandra.auth import PlainTextAuthProvider | |
import pandas as pd | |
def pandas_factory(colnames, rows): | |
return pd.DataFrame(rows, columns=colnames) | |
cluster = Cluster( | |
contact_points=['127.0.0.1'], | |
auth_provider = PlainTextAuthProvider(username='cassandra', password='cassandra') |