The news of Microsoft’s $7.5 billion acquisition of Github has been all over Wechat these days. Jerry also contributed a Github related article.

This post contains some of Jerry’s more unusual uses of Github. The directory is as follows:

1. Deploy the HTML application to Github and run it

2. Github integration with the cloud platform

3. ABAP Git client

4. Create a personal blog on Github

5. Productivity tips

6. Making around

If you have any tips for using Github, please leave a comment.

1. Deploy the HTML application to Github and run it

The trick is to use Github as a simple Web container. Create a Github repository, create a gh-Pages branch, and save and push your HTML project files to that branch. Suppose I developed an Angular app whose entry page is angular_controller.html. Then I pushed the local file to Github and accessed the app using a URL of the following format:

. Github.com//angular_co…

An example OF what I did:

See my blog for detailed steps:

Step by step to host your HTML application to Github

When Jerry switched from ABAP development to JavaScript development in 2014, he collected many open source JavaScript library files on the Internet, debugging line by line, and experienced how JavaScript masters play the language to the best of their ability.

I have deployed 91 HTML applications based on these libraries to Github, which can be run by clicking on the link below.

I042416. Making. IO/FioriODataT…

Here’s one of the apps running on your phone.

2. Github integration with the cloud platform

One example is Github’s integration with Salesforce’s Heroku cloud platform, which is easy for developers to use. Once you’ve created your app on Heroku, you just click the Connect to Github button,

Github’s automatic deployment to Heroku can be triggered by the push action of the local Git client to the remote repository.

This means that every time a change is made locally and pushed to the Github remote repository, we can directly access the latest version of the application on Heroku.

See my blog: Step by Step to host your UI5 application in Heroku for details

A UI5 application I deployed on Heroku:

jerrylist.herokuapp.com/ui5/

3. ABAP Git client

An open source Git client that uses ABAP to operate Github repositories directly in SAPGUI.

www.abapgit.org/

How to use it? Create an empty repository on Github and clone the repository to a package in the ABAP system. This action associates the ABAP system package with the repository on Github.

Once an ABAP report or class is created in the ABAP package, these objects will automatically appear in the ABAP Git client.

Push these changes directly to Github from within the ABAP Git client:

Maintain commit logs as other Git clients do when pushing: Jerry test comment:

Git Git Git Git Git Git Git Git Git Git Git Git Git

4. Create a personal blog on Github

Back in August 2012, Teacher Ruan Yifeng introduced how to use Github to build a personal blog on his personal blog website:

www.ruanyifeng.com/blog/2012/0…

Apart from the technology itself, there was a heated discussion in the comments section of Ruan’s blog post. Some friends think Github should not be abused and should only be used to store code.

Jerry is non-committal. Here is a Github blog created by several developers at SAP Chengdu Research Institute and myself:

  • www.tgf21.com – SAP Chengdu Research Institute S/4HANA Development team Tang Roam
  • IO – SAP Chengdu Research Institute C4C development team Du Rhea
  • jerrywang.vip

Open these personal blogs built on Github on the mobile phone, the effect is shown in the picture below:

5. Productivity tips

Edit the.gitconfig file in the user directory and set some aliases for common commands, such as gitc instead of git commit-m, to save a few keystrokes per use.

Modify another file in the user directory. Bash_profile. You can write some shell scripts in it and wrap them with function. Each time you type these functions on the Git client, you can execute the corresponding script.

The goal is to do the same thing by typing fewer times. Let’s say using these tips saves you two minutes a day, or 12 hours of typing a year.

6. Making around

Two interesting Github related Chrome extensions.

Use Chrome to open Github and display details of Contributions in a bar chart.

Octotree: Displays a list of code in the warehouse in a tree structure on the left side of the screen for easy viewing.

Here’s a guy who wrote a tool that generates some funny Github submission images.

Github.com/moonlightpo…

The idea is to download the home page of the Github user specified by the program and render the HTML page into the specified string.

Write a console program that specifies the Github user name and the string you want to see:

Output:

Github is everywhere:

Last but not least, this warehouse:

Github.com/houshanren/…

As of June 5, 2018, this warehouse has over 17,000 stars…

Many real estate insiders were surprised to see the content of this warehouse.

This house buying strategy is very thorough, logical, from the concept of real estate, block knowledge, land price, supporting planning, school district to regional value analysis, etc. To only know to write code, do not understand real estate programmers, this is a “purchase treasure book”, became the important data before they buy a house for reference.

To his colleague, Jerry just wanted to say: Bravo, brother!

For more of Jerry’s original technical articles, please follow the public account “Wang Zixi” or scan the following QR code: