picture
 focus on
"The Script House
, with millions of developers

picture

Source丨Low Concurrency Programming (ID: dibingfa)

Reprinted with the authorization of the original official account


I will give everyone a relaxing cold knowledge, but it is very practical. You will earn it for students who don't know it yet.


The operation technique is very simple, just find a GitHub repository, press the period on the keyboard, that is, the "." or "." key, you can see what the effect is.


For example, open the famous Linux source code.


picture


Press the period key, wait a few seconds, and the magic happens!


picture


Look! Actually opened a VSCode on the page to read the source code directly. Through the address bar you can find that the address of this website is

https://github.dev/

It's just that you don't have to find this URL specifically, just press a period key.

Do you still remember that I always found a source code on GitHub before, and if it was troublesome, I didn’t download it locally. But looking online is very unfriendly.

So with this method, it is no longer an excuse for you not to look at the source code! Just press a period key.

Some students said that some files in md format on GitHub are fine, but some files in html format are a little drunk, and they have to be downloaded locally and then opened with a browser.

For example, if you want to see the build instructions of openjdk, you can directly open it on the browser GitHub like this.

picture

It doesn't matter, tell you a magic URL.

https://htmlpreview.github.io/

Just enter the HTML file on GitHub you want to view in this URL, or paste the address directly after this address, eg.

https://htmlpreview.github.io/?https://github.com/AdoptOpenJDK/openjdk-jdk8u/blob/master/README-builds.html

Then it will directly show the beautiful effect of HTML, no longer the source code.

picture

Well, the OpenJDK page doesn't seem too pretty either...

What? not enough? You said that the code can't run after reading it, or are you upset?

It doesn't matter, I will recommend another amazing website to you.

https://www.gitpod.io/

picture

This is a place where you can provide a dev environment online and run your code.

It is also very simple to use. Just enter a warehouse address where you want to see the running effect. Here we take a Java project as an example.

picture

Select the spring-petclinic project and a button to open with idea will pop up.

picture

Of course, you need to follow the prompts to install the plug-in, then press the button to open the idea, and you will actually start running the Java project. I am too lazy to demonstrate it.

Today, I introduced three good tools to help you look at the source code.

github.dev or press the period key to help you see the source code online.

htmlpreview.github.i o help you view html documents directly online.

www.gitpod.io  helps you build a development environment on the cloud and run the project directly.

With these three tools, are you too embarrassed to look at the source code! Check it out! !

<END>

Programmer exclusive T-shirt

Product direct purchase link👇 

Script house carefully selected , transaction guarantee , buy with confidence , programmer geek short-sleeved T-shirt

picture

  Recommended reading:

finally! I found the reason why programmers love to wear sweaters

How did I teach myself Git/GitHub?
8 Cool GitHub Tricks That Make You Look Like a Boss!

When did Github support drawing flowcharts? ?