乙巳🐍年

acc8226 的博客

操作场景

为解决软件依赖安装时官方源访问速度慢的问题,为了提升依赖包的安装速度。

腾讯云开源镜像站加速

打开 maven 的配置文件( windows 机器一般在 maven 安装目录的 conf/settings.xml ),在 <mirrors></mirrors> 标签中添加 mirror 子节点:

1
2
3
4
5
<mirror>
<id>qq-cloud</id>
<mirrorOf>central</mirrorOf>
<url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url>
</mirror>
阅读全文 »

MathJax 和 LaTeX 数学公式 支持

MathJax 是一款运行在浏览器中的开源数学符号渲染引擎,使用 MathJax 可以方便的在浏览器中显示数学公式,不需要使用图片。目前,MathJax 可以解析 LatexMathMLASCIIMathML 的标记语言。MathJax 项目于 2009 年开始,发起人有 American Mathematical Society, Design Science 等,还有众多的支持者,个人感觉 MathJax 会成为今后数学符号渲染引擎中的主流,也许现在已经是了。本文接下来会讲述 MathJax 的基础用法,但不涉及MathJax 的安装及配置。

另外这里有个 LaTeX 教程,图文并茂, 强烈建议参考收藏。它和 MathJax 有差异,但是很多语法可以通用。

You can render LaTeX mathematical expressions using KaTeX

实例

特殊字符

阅读全文 »

配置华为云私有库下载

1. settings.xml 中设置仓库凭证:servers 节点中添加如下配置

1
2
3
4
5
6
7
8
9
10
<server>
<id>releases</id>
<username>************</username>
<password>************</password>
</server>
<server>
<id>snapshots</id>
<username>************</username>
<password>************</password>
</server>
阅读全文 »

Git Submodule 允许一个 git 仓库,作为另一个 git 仓库的子目录,并且保持父项目和子项目相互独立。

父项目:外层项目
子项目:里面的项目。

常用命令

git submodule 涉及的常用功能有:

  • git clone <repository> –recursive :递归的方式克隆整个项目

  • git submodule add <repository> <path> :添加子模块

  • git submodule init :初始化子模块

  • git submodule update :更新子模块

  • git submodule foreach git pull: 拉取所有子模块

  • git submodule foreach git checkout -- . 所有子模块进行 checkout -- . 操作。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
NAME
git-submodule - Initialize, update or inspect submodules

SYNOPSIS
git submodule [--quiet] add [<options>] [--] <repository> [<path>]
git submodule [--quiet] status [--cached] [--recursive] [--] [<path>...]
git submodule [--quiet] init [--] [<path>...]
git submodule [--quiet] deinit [-f|--force] (--all|[--] <path>...)
git submodule [--quiet] update [<options>] [--] [<path>...]
git submodule [--quiet] summary [<options>] [--] [<path>...]
git submodule [--quiet] foreach [--recursive] <command>
git submodule [--quiet] sync [--recursive] [--] [<path>...]
git submodule [--quiet] absorbgitdirs [--] [<path>...]


DESCRIPTION
Inspects, updates and manages submodules.

For more information about submodules, see gitsubmodules(7).
阅读全文 »
0%