Coder Social home page Coder Social logo

4th_plataforma's Introduction

4th_plataforma

This project is part of the Vivo challenge for new developers. It consists of 3 challenges, as follows: Note: See ./subject for more details.

***** 1th challenge*****

Given values from 0 to 15, generate a statistic of its occurrence in a bitmap image (which can be represented by an M x N matrix), as shown in the following figure:

1th

  • This challenge was developed in python v3.6.9.
  • Script: prova_desenvolvedores_4p_1.py
  • To run: $ python3 prova_desenvolvedores_4p_1.py

  • Requirements: python v3.x instaled

******To run unit tests:

  • go to ./unit_tests
  • To run: run py.test to run all tests. (unit_tests)$ py.test (Or py.test name_of_file.py to run a particular test.)

  • Note Requirements: You must have pytest installed on your machine. See https://docs.pytest.org/en/stable/ for instructions:
  • Requirements: pytest instaled
  • $ python3 -m pip install -U pytest

$ py.test 1th2

***** 2th challenge*****

Transform the previous algorithm into a Rest API.

  • Input parameter: list with the values
  • Output: output of the algorithm in JSON format.

This API was developed on Flask Framework.

  • Script: prova_desenvolvedores_4p_2.py
  • To run: $python3 prova_desenvolvedores_4p_2.py
  • In your browser, go to http://127.0.0.1/5000/ and follow the instructions. Or, for short, type the previous url followed by the space-separated values.

  • Requirements: To run the script it is necessary to have Flask framework installed:
  • $ python3 -m pip install flask

Note about input:

  • Values must be between 0 and 15,
  • separated by spaces.
  • Other characters are not accepted, as well as values outside the range.

***** 3th challenge*****

Develop an API that reads a log file and returns the following information: (See ./subject)

  • Arrival Position,
  • Superhero Code,
  • Superhero Name,
  • Amount of Completed laps and
  • Total race time. Script: prova_desenvolvedores_4p_3.py

  • Requirements:To run the script it is necessary to have pandas and numpy installed.
  • $ python3 -m pip install pandas
  • $ python3 -m pip install numpy

work in process

  • It was very exciting! Unfortunately I need to respect the project deadline. But this project, once evaluated so far, will be continued! After all, the challenge was accepted! 3th
  • May the force be with you!

3th1

4th_plataforma's People

Contributors

lilangbr avatar

Watchers

 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.