Github installation (zao) Force (jia) refers to (da) South (fa), githubzao

Source: Internet
Author: User

Github installation (zao) Force (jia) refers to (da) South (fa), githubzao

Github is for engineers. It is similar to Weibo album, and it is a facade. Whether it's a promotion question or a job interview, there is a rich code repository that doesn't dare to say how big the benefits are, but there is always. And the benefits are not limited to this. Only when the code is open-source will the problem be exposed and the problem be corrected, and some valuable changes will be received to PR. I am also happy with the benefits, but many people may not be interested in code writing because they do not have time to write (this is not a reason) or they do not know how to start because they are looking at github. This article focuses on the second reason.

Writing such a low article is mainly based on an opportunity. My daughter-in-law (iOS programmers) sometimes has many ideas, but she is too lazy to write. I suggest that she try again on github. Her reason is: My github space is full, and even if I write it, I don't have the face to post it out. It's a bit of a drop-down feeling.

Does that seem to make sense ?! Our men are also reasonable, so I changed her github to this.

This figure is before the change

 

This figure is after modification

 

Okay. The next step is the focus of this Article. How can I "change" it "? I would like to share this with you.

The main interface of Github is divided into three modules: the commit record below, the personal information on the left, and the code Display above.

<1> The following commit record

We all know what the following green points mean, that is, the more times you use the commit record in the past year, the deeper the color. However, this statistical method has a feature, that is, the statistical time is not based on the push time, but the commit time. So today, as long as you can "forge" a commit 10 days ago, the green dot will appear in the Grid 10 days ago. So I wrote a script and a custom script generation method.

This script-generating project is here: https://github.com/dsxNiubility/SXGithubPaints

The procedure is as follows:

1. First, you must understand the process of cloning code and pushing code on github: first create a new project on github, and then download the github client from the clone site of this project.

2. After the client is installed, you will be logged in with the github account, and then click "+" in the upper left corner to download your project to a file directory.

3. Run the SXGithubPaints Project (if you are a non-iOS developer, You need to download Xcode, which is a free software and can be downloaded in the Apple store with one click)

4. Fill in some necessary values, and then draw the desired pattern in the drawing board below. Click Generate script to generate it on your desktop (unless you have written your computer name wrong ).

5. Drag the script to the directory where you cloned the code in step 1, and enter the directory in the terminal.

Chmod 0755 dsx. sh // grant the executable permission to this script./dsx. sh // Execute

6. The next step is the processing process, which is expected to take 3 minutes. At this time, you will see that the txt file is continuously generated under the current directory, and the system time in the upper right corner is constantly changing.

7. After the terminal is running, open the github client and click sync for the previous project.

 

If you don't want to create a Green Dot, you just need to delete the previously created Project, and the green dot disappears.

The canvas pattern can be randomly filled, and then click Generate script to execute. Of course, you can also design it yourself. I simply set a dsxniubility and the effect is as follows.

(In order to allow everyone to make full use of their diy capabilities, the UI of my script project provides the function of saving the canvas and extracting the canvas. If you draw half of it, you can save it)

 

<2> personal information on the left

To improve the performance, you must first fill in all the entered information, including personal signatures, companies, and locations. Some may be surprised. Why are there so many fans? In fact, if you see it wrong, you just need to increase the number of people I pay attention. Generally, github does not play very well. When you see the green spots on the full screen, it is easy to understand following and followers. The star in the middle is also added by myself. It is recommended that you find github of some of their peers to order their stars, and then click their following up. There is another mental retardation problem, that is, my followers has always been 0. Why is it false? Don't worry, after you have spent more than 1000 people, there will be a lot of people going back to powder. Haha.

 

<3> code repository

This location is not fake, and it is all about implementing your own code. But not long ago the github main site was updated. This presentation board not only shows itself, but you can customize code that you think is good, either by yourself or by your contribution. Github has made the positioning design "you have contributed" very open. If you have mentioned PR or issue to a code library, you think you have contributed. In this case, you can pick a few frequently used libraries and send them an issue saying: THX a lot. Then these libraries are all "contributed" by you. Then you can click Customize your pinned repo to add them to your code panel. The final result is shown in.

 

 

Of course, most of the methods mentioned above are just for entertainment, but these are not bad examples, in the end, it depends on how you do it subjectively (the author's github does not use false data ). Some people may be eager to submit their own code after they click "commit". After one year, your code will overwrite the false data; some people go to the interview purely for fraud, which is also your own path. This is a bit like when I was a child. I don't need to issue answers in my exercise book, but I can buy the answers in a bookstore. Some people just finish parsing the answers at home, while others directly copy the answers. Now we can see that most of the good code is made by foreign friends, and I sincerely hope that Chinese developers can rise.

 

For the script generation project:

I wanted to write it as one-click all-pass, but considering that too many parameters, including the user's github user name and password, need to be input before the first generation, I think it is too redundant, let readers get their next github Client permission here. Even if all the work is done with one click, it is not the result I want to see if the novice still knows nothing about the github code process. This script project also implements a set of interfaces that can be customized, without adding a one-click full green because it is too SB. There are two follow-up update plans. Check if you have time to see if you can:

1. iOS has an api that can obtain the dominant color of a region. Based on this, you can send me a very flat image. I will generate a mosaic pattern for you and export the script directly. The limitation is that the github lattice has only seven grids in width, and the image generated may not be highly recognizable.

2. Do not fake the commit, but reorganize the commit time of the submitted code to draw the pattern. I 've seen a guy forget who it is. The drawing board of github is a two-person pattern, and each vertex is a real code commit. It cannot be done by yourself. It is estimated that it is a restructuring.

 

Appendix:

Address of the Project for processing commit

Author github address

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.