Code Monkey home page Code Monkey logo

_mentortools's Introduction

What is this?

This repository provides a few scripts that might make the exercism mentor experience a little smoother.

satisfying

Do go on....

Exercism.io is a great resource for programming practice. The most outstanding feature is certainly how it recruits its community to participate not just in improving and producing more exercises, but -even more importantly- to participate as mentors.

The overall mentor experience is not streamlined quite yet, but with a few hacks and scripts, it can be a lot of fun!

The routine goes:

  1. Use your eyeballs to verify the code is secure enough to run on your machine
  2. Download
  3. Enable all tests
  4. Run all tests

This project aims to automate all that at the press of a few buttons!

What does it do?

NOTE: Currently only the JavaScript track is supported

  1. The usual: It downloads a solution when provided the exercism download --uuid... command string
  2. Lint everything (don't stop on error)
  3. Security: Transpiles and sandboxes all *.js scripts (by replacing the original file with a VM runner)
    • By default, your mentor dashboard warns you to use your eyeballs to make sure that there is no malicious code; but I don't trust my eyes on such matters. I want things safe by default.
  4. Automatically enable all extended tests (Credit goes to loic from the Exercism Mentor Slack Team!)
  5. Finally, it runs all the tests! :)

Instructions

  • Go to your Exercism folder (or any other folder where you want to install this)
  • Checkout this repository: git clone...
  • cd _MentorTools
  • npm install
  • chdmod +x ./bin/exc.sh
  • Run it: ./bin/exc.sh
    • Copy&paste the exercism download --uid=... command from the mentor dashboard
  • Bonus points: place exc.sh in your $PATH :)

WARNING: Windows

  • Not tested on Windows yet
  • At the very least, you want to make sure, you have CYGWIN (or some other minimal POSIX environment) installed
    • (HINT: I usually get it by installing git; when using the MSI installer, you can even choose to add Linux tools to your default command line)

Troubleshooting

Credit

The real heroes are the people at exercism as well as the existing mentor community who relentlessly help others in their learning without expecting much (if anything) in return! Love you guys <3

Special mention: NobbZ who has been willing to put up with my pesky questions right from the start :)

_mentortools's People

Contributors

domiii avatar

Stargazers

 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.