Code Monkey home page Code Monkey logo

code_share's People

Watchers

 avatar  avatar  avatar  avatar

Forkers

mitchelsevere

code_share's Issues

Sandbox

I need to execute user code in the scope of SANDBOX. I have been reading for past few hours on the usage of sandbox and having difficulty wrapping my head around it. Need help with possibly pseudo coding on how to execute the user code in sandbox and staying away from using eval() directly in my own code's environment.

few topics i have been reading
SandBox Info
VM: Node package for sandbox

Example of my code using eval () directly in my code's environment.

` // evaluating the code from the editor and setting state of the result
handleExecuteCode = (code) => {
let result = eval(code);
this.setState({ codeResult: result })
}
// react component displaying the result of eval ()

<textarea cols='20' rows='5' value={'Result:' + this.state.codeResult}/> ` Thank You!

Redirect to home page

I am trying to redirect when the user logs in to go to Home page. I do not have any errors, I see all the functions logging in the console .....I do not see why does not want to go to the console.

advice on implementing tests

So we're creating a collaborative app that users can do code challenges together. We're going to create our own problem database but we're looking at npm package as a reference on how to create
our problems. We need help where to start on how to use tests from the problem and comparing it to what's written in the code editor when submitted.

Here's an example:
screen shot 2017-08-24 at 15 07 33

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.