Giter Site home page Giter Site logo

yidadaa / issue-blog-with-github-action Goto Github PK

View Code? Open in Web Editor NEW
73.0 4.0 36.0 2.94 MB

A well-designed blog theme based on Vuepress and hosted on Github Actions.

Home Page: https://blog.simplenaive.cn/Issue-Blog-With-Github-Action/

License: Do What The F*ck You Want To Public License

Vue 69.96% JavaScript 25.91% Stylus 4.13%
blog blog-theme blog-platform issue-blog

issue-blog-with-github-action's Introduction

ISSUE BLOG

English / 中文

An easy-to-use, serverless-deploying, github-based blog theme.

screenshot

Features

  • Modern responsive design.
  • Fully LaTex math support.
  • Print friendly.
  • SEO friendly.
  • Use Github issues to organize your blog.
  • No need for a server to host or deploy the blog pages.
  • Login with Github accounts and comment to the posts.
  • Well-designed resume page.
  • Build your personal homepage in 3 minutes.

Why ISSUE BLOG?

With ISSUE BLOG, a web browser is the only tool you need to use to setup, deploy and write your personal blog.

How to Use

Below are just some of the methods for installing ISSUE BLOG. Do not follow all of these instructions; just pick your favorite one.

Simple Installation (without Fork)

.github
 |- workflows
    |- custom.js # site config
    |- cv.md # resume config
    |- main.yml # github actions config
  1. Create the above files in your github.io repo, you can find the templates of these files at ./template;
  2. Edit custom.js and cv.md according to Config Reference;
  3. Edit main.yml, replace all <your-github-name> placeholder to your github account id.

Common Installation (with Fork)

  1. Fork this project, and rename it to <your-github-name>.github.io;
  2. Edit /src/.vuepress/custom.js to config your site, follow Config Reference.

Custom Installation

If you don't want to override your existing github.io repo, you can push the code to the source branch of your repo.

# 1. clone this project
git clone https://github.com/Yidadaa/Issue-Blog-With-Github-Action.git

# 2. change the remote url
git remote set-url origin your-remote-github.io-repo.git

# 3. push code
git push origin -u source

Then go to Settings -> Branches, and change Default branch to source branch, we host the source code in source branch and deploy the static pages to master branch.

Finally, edit /src/.vuepress/custom.js to config your site, please follow this section.

Config Reference

vssueConfig

Config for comment system, we use Vssue, so this part is same as Vssue doc.

{
  repo: String, // your github.io repo name
  owner: String, // your github id
  clientId: String,
  clientSecret: String
}

repoConfig

Config for push repo, here is the example:

{
  repo: String, // same as vssueConfig.repo
  owner: String, // same as vssueConfig.owner
  pushBranch: String, // which branch to deploy static pages, default is 'master' or 'main'
  email: String, // your email of github account, just for commit message
  filterUsers: Array<String> // filter issues according to github account ids
}

title

Your site's name.

description

Your site's description.

customDomain

Your personal domain, if you do not have a domain, fill it with empty string.

base

Root path for your site, refer vuepress guide for details.

slogan

Decorative texts in your home page.

{
  main: String, // top line
  sub: String // bottom line
}

themeConfig

Config for site theme.

{
  nav: [{
    name: String,
    link: String
  }], // navigation
  headTitle: [String], // Decorative texts in site header
  friendLinks: [{
    name: String,
    link: String
  }], // friend links in bottom footer
  extraFooters: [{
    title: String,
    text: String
  }], // extra texts in bottom footer
  pageCount: true // whether to show page report on footer or not
}

head

Please refer vuepress guide for details.

Hints: you can define the icon of the site here.

How to Develop

You need to create a new token here to develop and debug in local machine.

# 1. write your token to ./tools/config.js
cp ./tools/config.template.js ./tools/config.js
# edit ./tools/config.js with your favorite text editor, and copy your token to the file

# 2. install depencies
yarn install
yarn global add vuepress

# 3. fetch issues and save them to files
yarn run local

# 4. start to develop
yarn run dev

You can refer vuepress doc for more details.

FAQ

1. How to prevent others from publishing issues to the site?

You can set a white-list by setting repoConfig.filterUsers to ['Your Github ID', 'Another Friend's ID'], default setting allows everyone to post a blog to your site.

2. When updating the configuration, why GitHub Actions did not automatically run?

You can check the .github/workflows/main.yml file in your repository and ensure that the on->push->branches section corresponds to the branch where your code changes are made. Default branch was master, but now is main on GitHub.

3. GitHub Actions run successfully, but the repository code is not updated, and static page files are not added?

Please check the logs of your GitHub Actions and verify if the GITHUB_TOKEN has write permissions. If it does not, please refer to the official documentation about GITHUB_TOKEN and grant read and write permissions to your repository in .github/workflows/main.yml. Template file ./template/main.yml define read or write access for all of the available scopes.

Acknowledgment

issue-blog-with-github-action's People

Contributors

dependabot[bot] avatar junqi-lu avatar king-of-infinite-space avatar mrthanlon avatar yidadaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

issue-blog-with-github-action's Issues

按照最简安装无法成功部署

我按照最简安装在 junqi-lu/junqi-lu.github.io 下新建了三个文件,可以正常的运行github action,也都运行成功了,但是部署失败了。我不太懂vuepress和github action,但感觉理想情况下应该是在这个仓库下新建一系列静态渲染好的文件?

此外github现在默认分支名叫做main了,所以我把配置文件中的部分master换成main了。不清楚是否是因为这个。

Hello World

Method

In this section, we describe our unsupervised framework for monocular depth estimation. We first review the self-supervised training pipeline for monocular depth estimation, and then introduce the co-attention module and pose graph consistency loss function.

Supervision from Image Reconstruction

Following the formulation in \cite{zhou_unsupervised_2017}, the whole framework includes a DispNet and a PoseNet, the DispNet produces depth map and the PoseNet produces the relative pose between two RGB frames.

Given a sequence of consecutive frames $X_{t-1}, X_t$ and $X_{t+1}$,we estimate the depth for each frame, and the relative pose for every two adjacent frames, then we get depth map $D_{t-1}, D_t, D_{t+1}$ and translation matrix $T_{t-1\rightarrow t}, T_{t\rightarrow t+1}$.

Consider the adjacent frame pair $I_t$ and $I_{t+1}$, once the estimated depth $D_t$ and translation matrix $T_{t\rightarrow t+1}$ are available, we can project the source image $I_t$ to the next moment

$$
p(\hat{I}{t+1}) = KT{t\rightarrow t+1}D_tK^{-1}p(I_t)
$$

the function $p(.)$ denotes sampling from the homogeneous coordinates of image and $K$ denotes the camera insrinsic matrix, $\hat{I}_{t+1}$ can be reconstucted using the differentiable sampling mechanism proposed in \cite{jaderberg_spatial_2015}.

Hence the problem is formulated to the minimization of a phtometric reprojection error $L_p$

$$
L_p = \alpha \left|I_{t+1} - \hat{I}{t+1}\right|1 + (1 - \alpha)SSIM(I{t+1}, \hat{I}{t+1})
$$

$SSIM(.)$ is the structural similarity\cite{wang_image_2004} loss for evaluating the quality of image predictions, and to regularize the depth, we use a disparity image smoothness constraint as widely used in previous work\cite{mahjourian_unsupervised_2018,zhou_unsupervised_2017,garg_unsupervised_2016}

$$ L_{\mathrm{s}}=\sum_{x, y}\left|\partial_{x} D_{t}\right| e^{-\left|\partial_{x} I_{t}\right|}+\left|\partial_{y} D_{t}\right| e^{-\left|\partial_{y} I_{t}\right|} $$

List

Here is a list:

  • Xue Bai, Jue Wang, David Simons, and Guillermo Sapiro.Video SnapCut: robust video object cutout using localized classifiers. TOG, 28(3):70, 2009.
  • Linchao Bao, Baoyuan Wu, and Wei Liu. CNN in MRF: Video object segmentation via inference in a CNN-based higher-order spatio-temporal MRF. In CVPR, 2018

Code

Here is some code:

def bi_search(arr:list, x:int):
  l, r = 0, len(arr)
  while l < r:
    m = (l + r) >> 1
    if arr[m] >= x: r = m
    else: l = m + 1
  return l

Image

image

Table

A B C
123 456 789

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.