I'm on my very second project on Javascript and I came across several people's codes on Github. I'd like to give them a test run to understand how they work. How or what is the best way to go about testing the code?
When you open a repository in GitHub, there's a Green "Code" dropdown menu in the repository page (see screen shout).
You can use this menu to clone\download the repo to your local computer and play with it
I was talking with a friend today and showed him my github contribution graph. After seeing it he asked how I got the little radio graph that shows the percentage of commits vs pull requests vs issues vs code reviews.
I remember enabling it in the settings at some point in the past but I cannot remember where I did it. I also looked through the settings just now and I don't see an option for it. Moreover when I search online I can't find any mention of it.
I feel like I'm searching using the wrong term for the graph or something. Anyone know where this feature is enabled??
It's called Activity Overview. You can enable it here:
https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-settings-on-your-profile/showing-an-overview-of-your-activity-on-your-profile
I know I can manually go to PR and uncheck Viewed. Is there a shortcut to uncheck on all files in the PR?
Found some relevant issues on GitHub
https://github.com/refined-github/refined-github/issues/2444
Why I want to do it?
To be able to see the comments and expand the cards which are collapsed because I manually marked viewed.
I tried Option+Click on Mac , didn't work for me.
Don't think the UI currently supports that. It looks like you need to tick, all checkboxes manually. Or come up with a JavaScript to find and click them for you.
Try that in your browser console.
document.getElementsByName("viewed").forEach(ch => {if(ch.checked) {ch.click()}})
I've added a few comments on issues that bothers me in a few repositories. I'd like to search for them. Is it possible to find them using github web ui ?
Click on the top right bell icon (notifications), then go to the tab Subscriptions. You should be able to find your stuff there.
How to disable source tab in Google Code? I don't want any random users to look at my code.
Before you say that this can't be done, that Google Code is by default open source. Someone managed to do it, somehow.
Edit: Before you downvote me further, take a look at the link I provided. It's possible to do it, despite whatever you want to say. And I want to know how.
I don't want any random users to look at my code.
You can't prevent people from downloading the source code. Google's SVN repositories are open to anonymous browsing and checkout. For example, in the project you cited (the StackOverflow clone), notice that
svn checkout http://cnprog.googlecode.com/svn/trunk/ cnprog-read-only
works just fine for downloading the source.
If you don't want people looking at your source code, don't use a free public-hosting service. Setting up a local svn repository is very easy, in any case: here's how you'd go about setting one up and adding stuff to it.
In your GC page Administer|Tabs then check the hide checkbox next to Source. Your code will still be available via SVN though.
The whole point of Google Code is that it is for open source. That means everyone is allowed to see it. If you don't want people looking at your code, use some closed source hosting site.
You can replace tabs with Wiki pages (for example, to point to your GitHub repository), but you can't prevent access to the Google SVN server.