Skip to content

Instantly share code, notes, and snippets.

View dmod's full-sized avatar
💭
Workin'

Andrew dmod

💭
Workin'
View GitHub Profile
@dmod
dmod / README.md
Last active December 18, 2019 13:31
Business Card Parser

Business Card Parser

The Business Card Parser contains the necessary functionality to parse and represent the output of an OCR Business Card Reader. Two classes are contained, one that will represent the model of the contact info parsed from the business card, including: Name, Phone Number, and Email Address. The other class contains the necessary methods to parse each field from the string of business card text.

from decimal import *
MONTHS_IN_A_YEAR = Decimal(12)
LOAN_TERM_YEARS = Decimal(30)
HOME_PRICE = Decimal(550000)
DOWN_PAYMENT = Decimal(50000)
INTEREST_RATE = Decimal(.030)
OPPORTUNITY_INITIAL_INVESTMENT = Decimal(5000)
#!/bin/bash
if [ "$USER" = root ]; then
echo "This script shouldn't be run as root. Aborting."
exit 1
fi
# to skip any questions from APT
export DEBIAN_FRONTEND=noninteractive