This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 重新加载配置 | |
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function() | |
hs.reload() | |
end) | |
hs.alert.show("加载完毕") | |
-- 窗口横二竖二 | |
hs.hotkey.bind({"cmd", "ctrl"}, "a", function() | |
local win = hs.window.focusedWindow() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// params struct 调整为 common 包的alias | |
type (\w+) struct \{\n([,/|\[\]\s\w\*\(\)\?`:".-]+)\n\} | |
type $1 = common.$1 | |
// params string 调整为 common 包的alias | |
type (\w+) string | |
type $1 = common.$1 | |
// params int 调整为 common 包的alias | |
type (\w+) int |
Run go install
and
gogitlocalstats -add /path/to/folder
will scan that folder and its subdirectories for repositories to scangogitlocalstats -email [email protected]
will generate a CLI stats graph representing the last 6 months of activity for the passed email. You can configure the default inmain.go
, so you can rungogitlocalstats
without parameters.
Being able to pass an email as param makes it possible to scan repos for collaborators activity as well.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |