The Wayback Machine - http://web.archive.org/web/20210725225411/https://github.com/Bhupesh-V/30-seconds-of-cpp/issues/36
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Run Code Links in existing code snippets #36

Open

Bhupesh-V opened this issue Apr 10, 2019 · 20 comments · May be fixed by #611
Open

Add Run Code Links in existing code snippets #36

Bhupesh-V opened this issue Apr 10, 2019 · 20 comments · May be fixed by #611

Comments

@Bhupesh-V
Copy link
Owner

@Bhupesh-V Bhupesh-V commented Apr 10, 2019

Add Runnable links of the code below the example.
Use link name Run Code which links to a Online C++ complier conatining the example code.
Use Rextester as the Online C++ Compiler (If you have a better suggesstion please comment).

Follow below steps to generate the Run Code Link.

  1. Go to Rextester
  2. Copy or write the example code.
  3. Run the code (hit F8) , see if you face any problems
  4. Save the code with the followng title format
    <algo_name>_30-Seconds-of-C++
  5. A permanent link will be generated , copy that
  6. Submit a PR which contains the Run Code Link just below the example.

Comment any doubts, suggesstions.

@Bhupesh-V Bhupesh-V changed the title Add Live Run Links in existing code snippets Add Run Code Links in existing code snippets Apr 10, 2019
@sdmg15
Copy link
Contributor

@sdmg15 sdmg15 commented Apr 11, 2019

Yes I think it's good.
And I think the fact that you want to create a separate file for each code snippet is not that too good. I think it's better to have all in on place + run-able code link.

Another point is that I think we need to make the code uniform (Either using std:: or not, but warning before ) and prefer using predefined algorithm

@Bhupesh-V
Copy link
Owner Author

@Bhupesh-V Bhupesh-V commented Apr 11, 2019

Another point is that I think we need to make the code uniform (Either using std:: or not, but warning before ) and prefer using predefined algorithm

I guess using std:: would be rather safe than using namespace std; what do you suggest ?

@Bhupesh-V
Copy link
Owner Author

@Bhupesh-V Bhupesh-V commented Apr 11, 2019

Yes I think it's good.
And I think the fact that you want to create a separate file for each code snippet is not that too good. I think it's better to have all in on place + run-able code link.

Yeah you are right , I would remove the extra directories of different headers

@sdmg15
Copy link
Contributor

@sdmg15 sdmg15 commented Apr 11, 2019

Yes I suggest putting std::

@vsin12
Copy link

@vsin12 vsin12 commented Oct 1, 2019

Are any of these tasks still available ? I am new to open-source and would like to start contributing.
I see that this issue is open, but I do not see any run-code links missing.

@Blahblahblahsomething
Copy link

@Blahblahblahsomething Blahblahblahsomething commented Oct 3, 2019

Is this issue still open?

@Bhupesh-V
Copy link
Owner Author

@Bhupesh-V Bhupesh-V commented Oct 4, 2019

@vsin12 @Blahblahblahsomething you can contribute sample code and give a PR in the snippets directory.
see some examples on how to add sample code

@Blahblahblahsomething
Copy link

@Blahblahblahsomething Blahblahblahsomething commented Oct 4, 2019

Thank you.

@Harshwp
Copy link

@Harshwp Harshwp commented Oct 6, 2019

Is this issue still open? I would like to contribute

@akhilkh2000
Copy link

@akhilkh2000 akhilkh2000 commented Oct 10, 2019

Is this issue still open?

@ashwani-rathee
Copy link

@ashwani-rathee ashwani-rathee commented May 13, 2020

Is this issue still open?

@Bhupesh-V
Copy link
Owner Author

@Bhupesh-V Bhupesh-V commented May 15, 2020

Is this issue still open?

Yes

@marcinky
Copy link

@marcinky marcinky commented May 30, 2020

Hi! It looks like this issue is still open. I'm a newbie who would like to contribute. I'll review this thread - it looks like you have directed us to contribute sample code and give a PR in the snippets directory. I'll give it a go.

@YersiniaP
Copy link
Contributor

@YersiniaP YersiniaP commented Jun 1, 2020

Hello there, I am also new to OS and would like to contribute to this project. As per the instructions, I will get the example code to run using Rextester and paste the permanent link below the snippet before submitting a PR.

@marcinky marcinky mentioned this issue Jun 5, 2020

@alkatrivedi
Copy link

@alkatrivedi alkatrivedi commented Jun 12, 2020

I want to work on this project. May I?

@dbejanishvili
Copy link
Contributor

@dbejanishvili dbejanishvili commented Jun 14, 2020

onlinegdb seems to have compilers that work with functions, some of which rextester doesn't have support for.

@mouryac9
Copy link
Contributor

@mouryac9 mouryac9 commented Sep 25, 2020

I would like to work on this issue.

@Amit-R-Bhagat
Copy link

@Amit-R-Bhagat Amit-R-Bhagat commented Oct 4, 2020

I would also like on work on this issue.

@AlexMunozPino
Copy link

@AlexMunozPino AlexMunozPino commented Oct 27, 2020

Hey! I would like to work on this issue as well

@destro-2698 destro-2698 linked a pull request that will close this issue Dec 5, 2020

3 tasks
@aditi-goyal-257
Copy link

@aditi-goyal-257 aditi-goyal-257 commented Jan 18, 2021

I would like to contribute, is this issue still open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Linked pull requests

Successfully merging a pull request may close this issue.