Code Monkey home page Code Monkey logo

hngi7-task-2's Introduction

HNGi7-task-2

HNGi7 Task 2 (By: Team-Fierce) <<<<<<< HEAD

HOW TO ADD YOUR SCRIPTS TO THIS REPO

  1. Fork this repository

  2. Clone the forked repo to your computer

  3. Add your script to the scripts folder (Please follow the naming convention earlier stated - {username-HNG-ID.ext” ---- ( where “.ext” is your file extension .js/.py/.php ) So for example, mine will be tomiwaajayi-HNG-00020.js / tomiwaajayi-HNG-00020.php / tomiwaajayi-HNG-00020.py, all depending on my script extension}

  4. After you have added your script file to the scripts folder, run the following in gitbash or teminal
    • git checkout -b HNG-ID (e.g git checkout -b HNG-00020)
    • git add .
    • git commit -m "username-HNG-ID script" (e.g git commit -m "tomiwaajayi-HNG-00020 script")
    • git push origin HNG-ID (e.g git push origin HNG-00020)

  5. Create a pull request straight to this repository
    NB: In your forked repo, don't merge your newly created branch into develop i.e you will be creating a PR with your new branch (which contains your script) ahead of your develop branch

Languages Supported

  • Python (3.x)
  • Javascript (Node)
  • PHP

JSON Response

Implementation for unsupported and supported languages was catered for and can be accessed with

  • valid
  • invalid

Indexing the valid key gives an array of all supported langugaes that has gone through processing and Indexing the invalid part of the json gives an array of all unsupported languages

sample json output

{
  "valid": [{
    "output": "Hello World, this is Don Joe with HNGi7 ID HNG-xxxx using JavaScript for stage 2 task",
    "name": "Don Joe",
    "id": "HNG-xxxx",
    "email": "[email protected]",
    "language": "Javascript",
    "status": "pass",
  },
  {
    "output": "Hello World, thisis Mary Joe with HNGi7 ID HNG-yyyy using PHP for stage 2 task",
    "name": "Mary Joe",
    "id": "HNG-yyyy",
    "email": "[email protected]",
    "language": "PHP",
    "status": "fail",
  },
  .
  .
  .],
  "invalid": [{
    "output": "Files with .cpp extension are not supported!",
    "name": "null",
    "file": "intern.cpp"
    "id": "null",
    "email": "null",
    "language": "null",
    "status": "fail",
  }]
}

=======

master

hngi7-task-2's People

Contributors

orimdominic avatar sproff avatar tomiwaajayi avatar isongjosiah avatar joelekpenyong avatar frost199 avatar youthtrouble avatar wisedman10 avatar smahrt avatar kephaz avatar udohahanor avatar ajayitomiwa avatar phrukey avatar philipokiokio avatar emem-ette avatar deedan19 avatar doojy-cg avatar chiazam-tech avatar acelewy avatar d18thday avatar preciousoge avatar temitopeakin1 avatar oluwasube avatar olaoluwaafolaranmi avatar abbey112 avatar okirigabriel avatar mofiyin2003 avatar kenrelic avatar ibperme avatar olodestone 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.