Skip to content

Instantly share code, notes, and snippets.

View redblue9771's full-sized avatar
👀
Studying at freeCodeCamp

赤琦 redblue9771

👀
Studying at freeCodeCamp
View GitHub Profile
@redblue9771
redblue9771 / Conventional Commits.md
Last active November 17, 2020 07:44
约定式提交规范

1. 全局安装commitizen & cz-conventional-changelog

commitizen是一个撰写合格commit message的工具,用于代替git commit指令,而 cz-conventional-changelog 适配器提供 conventional-changelog 标准(约定式提交标准)。

基于不同需求,也可以使用不同适配器。

npm install -g commitizen cz-conventional-changelog
echo '{ "path": "cz-conventional-changelog" }' > ~/.czrc
@redblue9771
redblue9771 / git-clear-cache.sh
Created December 8, 2019 16:52 — forked from joemaffia/git-clear-cache.sh
Clear git cache
git rm -r --cached .
git add .
git commit -am 'git cache cleared'
git push
@redblue9771
redblue9771 / easing.js
Created May 12, 2019 06:58 — forked from RienNeVaPlus/easing.js
Simple Easing Functions in JavaScript using `export`
/**
* Easing functions
*
* https://gist.github.com/gre/1650294
* http://easings.net
*/
// no easing, no acceleration
export function easeLinear(t){ return t; }
// accelerating from zero velocity
export function easeInQuad(t){ return t*t; }