Skip to content

Instantly share code, notes, and snippets.

View AidanDai's full-sized avatar
💭
I may be slow to respond.

Aidan AidanDai

💭
I may be slow to respond.
View GitHub Profile
@AidanDai
AidanDai / analytics.js
Created July 27, 2018 01:00 — forked from zmmbreeze/analytics.js
GA的源码 analytics.js
(function() {
/**
* 记录方法使用情况的类
* @param {Array.<boolean>} umMap 初始的使用情况
*/
var UsageManager = function(umMap) {
this.umMap = umMap || [];
};
/**
* 记录新的使用情况
@AidanDai
AidanDai / fork-and-push.md
Created April 15, 2018 03:48 — forked from zxhfighter/fork-and-push.md
如何给开源项目贡献代码

如何给开源项目贡献代码

分两种情况:

  • 代码仓库管理者给你添加该仓库的写入权限,这样的话可以直接push
  • 如果不能直接push(大多数情况),采用经典的fork & pull request来提交代码,下面讲述这种情况

fork & pull request

例如有个仓库https://github.com/ecomfe/esui.git,其采用了经典的分支开发模型,稳定后的代码提交到master分支,其余特性则在dev分支上进行开发,待成熟后合并回master分支。

@AidanDai
AidanDai / config
Created April 1, 2018 04:32 — forked from starenka/config
~/.config/terminator/config
[global_config]
geometry_hinting = False
enabled_plugins = ,
tab_position = hidden
borderless = True
[keybindings]
scaled_zoom = <Shift><Control>u
go_up = <Shift>Up
next_tab = <Shift>Right
split_horiz = <Shift><Control>t