Skip to content

Instantly share code, notes, and snippets.

View adryd325's full-sized avatar

adryd adryd325

View GitHub Profile
#!/usr/bin/env python3
# Download your data dump and place this file in the "messages" folder of your data dump.
# Run it using python
from datetime import datetime, timedelta, timezone
import dateutil.parser
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import matplotlib.dates as mdates
import csv
@adryd325
adryd325 / robbyrussell.bash-theme
Last active January 19, 2023 22:39 — forked from hamidne/robbyrussell.bash-theme
bash robbyrussell theme
prompt_exitcode() {
[[ $exitCode -eq 0 ]] && prompt+="\[\e[1;32m\]" && return
prompt+="\[\e[1;31m\]"
}
prompt_git() {
branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [[ -n "$branch" ]]; then
status="$(git status 2>&1 | tee)"
bits=""