Code Monkey home page Code Monkey logo

3c-utils's Introduction

3C Utils


/!\ This README is not updated yet !

Required : Node JS

Steps :

  • Clone this project
  • Create the kata directory in the src directory and use the kata's name eg: Kata1/
  • Create the level directory inside the kata dir eg: level_1/
  • Create the input directory inside the level directory, extract the input and place here
  • Create your JS file contain the solution

Your src tree should like this :

src
│   ├── Kata1     <--- kataName
│   │   ├── level_1     <--- level
│   │   │   ├── input       <--- inputs
│   │   │   │   ├── level_1_1.csv
│   │   │   │   ├── level_1_2.csv
│   │   │   │   ├── level_1_3.csv
│   │   │   │   └── level_1_4.csv
│   │   │   └── level_1.js      <--- your code inside it
│   │   ├── level_2
│   │   └── level_n
│   ├── Kata2
│   └── KataN

In your JS file, import the function readAndWrite and use it, with params : (kataName : String, level : String, functionName : String)

And it should like this :

import { readAndWrite } from "../../utils/readInAndWriteOut.js";

function yourFunctionName(input) {
    // Your code
    return "yourOutput";
}

readAndWrite("yourKataName", "yourLevel", yourFunctionName);

You can run the code :

node path/to/the/code/file.js

If no error occurred, the output directory with the results created

│   │   │   └── output
│   │   │       ├── level_1_1.csv
│   │   │       ├── level_1_2.csv
│   │   │       ├── level_1_3.csv
│   │   │       └── level_1_4.csv

*reload the IDE's file explorer if no directory created


Mampiasà finaritra ^_^

3c-utils's People

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.