GithubHelp home page GithubHelp logo

sieumn / algo_env Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uplsh580/algo_env

0.0 0.0 0.0 83 KB

Provide environment for solving algorithm problems.

Dockerfile 0.23% Shell 1.03% Python 3.18% C++ 95.56%

algo_env's Introduction

Algorithms Env.

This Repo. provides an environment to solving algorithm problems for BEGINNERS.

  • Python 3.6.10
  • GCC 8.3.0

Install & Start Env.

Option1. Using Virtual Environment

  1. Install virtualenv
    pip install virtualenv
    
  2. Clone this repo.
    git clone https://github.com/uplsh580/algo_env.git
    cd algo_env
    
  3. Create Virtenv
    python -m venv .venv
    
  4. Activate virtenv
    . .venv/bin/activate
    
  5. Install python packages
    pip install -r requirement.txt
    

Option2. Using Docker

  1. Install Docker link
  2. Clone this repo.
    git clone https://github.com/uplsh580/algo_env.git
    cd algo_env
    
  3. Execute docker_set.sh script to build docker image and run container
    ./docker_setup.sh --run
    
  4. Check container is created.
    docker ps -a
    
    You can find the algo container has UP STATUS.
  5. Run bash in algo container.
    docker exec -it algo /bin/bash
    
    The executed bash is the shell that ran on the algo container.

Don't be embarrassed.

  • Q: How to exit from container?
    A: Run exit command in container shell.

  • Q: When run docker exec -it algo /bin/bash command, I meet below message.

    > docker exec -it algo /bin/bash
    Error response from daemon: Container 3a6c980cfda39555c4ed954c72e7a4bbe166ff1b7acad2386d3fdf5aa4a81e28 is not running
    

    A: This is a message that appears after the container is closed.
    Please run docker start algo to start container
    and execute again docker exec -it algo /bin/bash command.

algo_env's People

Contributors

sieumn avatar uplsh580 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.