Skip to content

Instantly share code, notes, and snippets.

View ibelem's full-sized avatar
🖖

Belem Zhang ibelem

🖖
  • Intel Corporation
  • Shanghai, PRC
  • X @ibelem
View GitHub Profile
@ibelem
ibelem / Sync gh-pages + master branches
Created May 28, 2019 01:53 — forked from mandiwise/Sync gh-pages + master branches
Keep gh-pages up to date with a master branch
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master
$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes
@ibelem
ibelem / gh-pages.sh
Created May 28, 2019 01:56 — forked from skratchdot/gh-pages.sh
Initialize gh-pages branch
# create gh-pages branch
git checkout --orphan gh-pages
git rm -rf .
touch README.md
git add README.md
git commit -m 'initial gh-pages commit'
git push origin gh-pages
# add gh-pages as submodule
git checkout master
{
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.pycodestyleEnabled": true,
"python.linting.pycodestylePath": "/home/belem/.local/bin/pycodestyle", // 设置pycodestyle的全局路径,需要在使用全局python pip安装
"python.formatting.provider": "autopep8",
"python.formatting.autopep8Path": "/home/belem/.local/bin/autopep8",
"workbench.colorTheme": "Monokai",
"window.zoomLevel": 0,
"editor.fontSize": 14,