Git Product home page Git Product logo

automation's Introduction

Lab: Automation

Author: Ben Hill

Overview

A colleague has abruptly left the team to pursue a career as a novelist.

This colleague’s last days (and weeks) on the job were a mixed bag in terms of productivity.

Looking through the documents left behind there is some important contact info in the form of email addresses and phone numbers.

Unfortunately it’s mixed in with a bunch of useless notes.

Your job is to find the needles in the haystack.

Feature Tasks and Requirements

  • Given a document potential-contacts, find and collect all email addresses and phone numbers.
  • Phone numbers may be in various formats.
    • (xxx) yyy-zzzz, yyy-zzzz, xxx-yyy-zzzz, etc.
    • phone numbers with missing area code should presume 206
    • phone numbers should be stored in xxx-yyy-zzzz format.
  • Once emails and phone numbers are found they should be stored in two separate documents.
  • The information should be sorted in ascending order.
  • Duplicate entries are not allowed.

phone_numbers.txt

123-456-7890
206-678-9012
234-567-8901

emails.txt

Stretch Goals

  • It turns out some of the contacts are already in our system.
    • Compare your collected data against existing-contacts.txt and only include info NOT already in system.
  • Handle phone numbers with extensions. E.g. (123) 456-789x012

User Acceptance Tests

The ‘phone_numbers.txt’ and ‘emails.txt’ files will be verified by an automated system. So make sure to match the naming/formatting requirements exactly.

automation's People

Contributors

ben-hill33 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.