Skip to content

Instantly share code, notes, and snippets.

View jiankang-wang's full-sized avatar

wangjiankang jiankang-wang

  • 浙江-杭州
View GitHub Profile
@jiankang-wang
jiankang-wang / git-branch.md
Created December 9, 2021 09:14 — forked from yisibl/git-branch.md
在Mac、Linux 终端显示 Git 当前所在分支

在Mac、Linux 终端显示 Git 当前所在分支

  1. 进入你的home目录
cd ~
  1. 编辑.bashrc文件
@jiankang-wang
jiankang-wang / easing.js
Created October 6, 2020 14:52 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: t => t,
// accelerating from zero velocity
easeInQuad: t => t*t,
// decelerating to zero velocity