Giter VIP home page Giter VIP logo

shatgupt / runmycode-ext Goto Github PK

View Code? Open in Web Editor NEW
39.0 3.0 20.0 370 KB

Compile and run C, C++, Java, Nodejs, Python, Ruby, Go and PHP code online, directly from Github, Gitlab, Bitbucket, and GoByExample.

Home Page: https://runmycode.online

License: MIT License

JavaScript 90.81% HTML 3.29% CSS 5.91%
run compile code online browser github gitlab bitbucket ruby php python nodejs go java chrome firefox online-compiler c cpp scala

runmycode-ext's Introduction

RunMyCode Online WebExtension

Compile and run C, C++, Java, Nodejs, Python, Ruby, Go and PHP code online, directly from Github, Gitlab, Bitbucket and more - https://runmycode.online

RunMyCode Online Screenshot

How to Use

  1. Install the extension: Chrome, Firefox, Opera
  2. On extension install, RunMyCode Online will open in a new tab and prompt you to authenticate to get a key.
  3. On authenticating with any the of providers, you will be redirected to dashboard page and extension will be auto-configured with your key.
  4. Now you can go to any supported language code page on Github or Gitlab and you will see a colored Run button added to left of usual action buttons (see screenshot above). For example, you can test the extension with this Ruby code on Github.
  5. Clicking that Run button will open a runner where you can input any command line args and then press the big orange Run button to run the code on the page.
  6. You can also edit the code using the web editor on Github or Gitlab and make it run through the same Run button as above.

Supported Websites

All the supported version control sites have support for running standalone code from view, edit and new file pages.

  1. Github
  2. Gitlab
  3. BitBucket
  4. Github Gist
  5. Gitlab Snippets
  6. BitBucket Snippets
  7. Go by Example
  8. Xahlee
  9. Learn To Solve It
  10. Tutorials Point

Supported Languages

Language is detected based on the file extension. So for executing Python3 code, you will need py3 extension, cpp for C++.

  1. C (GCC 7.2)
  2. C++ (GCC 7.2)
  3. Java 8
  4. Node.js 6.10
  5. Python 2.7
  6. Python 3.6
  7. Ruby 2.2
  8. Go 1.7
  9. PHP 7
  10. Kotlin
  11. Scala

Supported Browsers

Latest versions of following browsers:

  1. Chrome
  2. Firefox
  3. Opera - Use this Opera extension to install the Chrome version.

Edge has a non-standard WebExtension implementation

Permissions Requested by Extension

Starting with v2.0.0, RMCO only asks permission for GitHub by default. All other websites are optional and can be allowed on demand.

  1. Optional permissions for the above supported websites to allow extension to run code directly from there
  2. runmycode.online - To auto-configure the extension
  3. api.runmycode.online - To run code from the extension
  4. tabs - For detecting url change and page loading complete for single page apps like Github, Bitbucket
  5. storage - To store API URL and Key as extension options

Developing the Extension

Building

Build generates manifest.json, creates a directory dist/<browser> and puts all the extension relevant files there.

  • Build for all supported browsers: npm run build
  • Build for a specific browser: npm run build -- chrome|firefox|opera|edge

Credits

Icomoon.io for the icon.
Intelli-Octo for the initial code scraping code.

License

MIT

runmycode-ext's People

Contributors

shatgupt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

runmycode-ext's Issues

RunMyCode is an awesome extension!

Hello! I recently came across RunMyCode while browsing Firefox WebExtensions and as a developer myself, I must admit this is a really cool project! I just started making browser extensions myself (RapidTabOpener) so I just wanted to reach out and introduce myself. I'd like to hopefully be able to contribute to this project too if you wouldn't mind.

Problem running java code

The runmycode extension is a brilliant idea for example for checking students' homeworks directly on github instead of checking out etc. however, I have an issue with running Java code from github. It seems that the name of the class is not passed on correctly.
I.e. if I want to run Bowls.java I get:

Failed: CodeToRun.java:3: error: class Bowls is public, should be declared in a file named Bowls.java
public class Bowls {
^
1 error

I tested that using for example:
https://github.com/prubach/CP_summer_2018/blob/master/src/pl/waw/sgh/Bowls.java

Support STDIN for input

Support STDIN for input instead of or in addition to command line args as STDIN seems more popular for inputs to programs.

Explore more websites for optional integration

Explore more websites which can be optionally supported by the extension to run code.
I am going to keep this issue open for suggestions to add to the following list.

Chrome extension not working on github

Hi,
I installed the chrome extension for runmycode.online. I followed the instruction to authenticate github. But I am unable to see the "Run" button on the github page with code (as shown in your video). I tried clicking on the extensions, reloading the page and setting the option to github on the extension itself. None seemed to resolve this.
On the other hand, this extension works at Gitlab. I wonder why it doesn't work on Github for me?

Kind regards,
Brindha

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.