Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
fact = [1, 1, 2, 6, 3, 1, 6]
base = [1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6]
def lnzsdf(x):
result = 1
count = 0
cur = x
while cur != 0:
mod = cur % 7