G2 多图形图例问题

G2 多图形图例问题

谨以此文记录下如何利用 G2 在同一个坐标系内绘制多图时使用图例问题。如无特殊说明,当前 G2 版本为:4.1.37

阅读更多
如何在MAC上安装Mysql
Nodejs 中基于 Stream 的多文件合并实现
GitHub Actions 如何使用缓存

GitHub Actions 如何使用缓存

前言

在之前的文章中 《github-actions入门》《 如何使用Github Action 自动 lerna publish 》中,介绍了 Github Actions 的一些用法,其中在构建过程中,会安装很多第三方依赖,而这些依赖会很耗时,因此可以考虑是否有优化的空间,并不需要每次都重新下载,而是可以将这些依赖缓存起来,加快构建速度。

这里专门开一篇文章,来记录 Github Actions 的缓存优化相关的知识。

阅读更多
GitHub Actions 如何手动触发

GitHub Actions 如何手动触发

前言

GitHub Ac­tions 在早期可能是处于初级开发阶段,它的功能非常原生,甚至没有直接提供一个手动触发按钮。一般的触发方式为代码变动(pushpull_request),发布文件(release)或者定时(schedule)等,这些属于自动触发方式。如果我们需要在 GitHub 仓库没有任何变动的情况下手动触发就需要使用一些奇技淫巧。经历了漫长的功能迭代,官方最终正式带来了手动触发功能,这也宣告了一个瞎折腾时代的结束,一个崭新的折腾时代开始。

阅读更多
如何使用Github Action 自动 lerna publish
IDEA粘贴多行代码时,总是自动缩进
npm publish 过滤部分文件

npm publish 过滤部分文件

npm publish 的时候会把项目目录里面所有的文件都publishnpm仓库中, 但是往往有一部分目录和文件不想发布上去,比如项目的源码、编译脚本等等信息。

阅读更多
package.json 各字段的作用

package.json 各字段的作用

package.json 文件可以使你的 npm 包对于其他人来说更容易管理和下载。发布 npm 包也是必须要有该文件的。

阅读更多
git-pull-default

git-pull-default

问题背景

当使用 git 版本为 2.27.0 以上时,使用git pull命令出现以下的警告:

1
2
3
4
5
6
7
8
9
10
11
12
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint:
hint: git config pull.rebase false # merge (the default strategy)
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
阅读更多