-V, --version output the version number
-d, --dist <dist> Base directory for all source files
-s, --src <src> Pattern used to select which files to publish (default: "**/*")
-b, --branch <branch> Name of the branch you are pushing to (default: "gh-pages")
-e, --dest <dest> Target directory within the destination branch (relative to the root) (default: ".")
-a, --add Only add, and never remove existing files
-x, --silent Do not output the repository url
-m, --message <message> commit message (default: "Updates")
-g, --tag <tag> add tag to commit
This file contains hidden or 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
/** | |
* ### 基础空白字符 | |
* - \s: 匹配所有空白字符包括空格、制表符、换页符等 | |
* ### Unicode空白字符 | |
* - \u00A0: 不间断空格 (NO-BREAK SPACE) | |
* - \u1680: OGHAM SPACE MARK | |
* - \u180E: MONGOLIAN VOWEL SEPARATOR | |
* - \u2000-\u200F: 包含了多个空格和方向控制符 | |
* - \u2028: LINE SEPARATOR | |
* - \u2029: PARAGRAPH SEPARATOR |
This file contains hidden or 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
/** | |
* 验证是否为有效的 IPv6 地址 | |
* from https://github.com/ChrisWarwick/IPv6Regex/blob/master/IPv6Regex.psm1 | |
* @param ip | |
*/ | |
function isValidIPv6(ip: string) { | |
// IPv6 地址由 1-4 位十六进制数字组成的组构成 | |
const hex = '[0-9a-fA-F]{1,4}'; | |
// IPv6 地址可以在最后 4 个字节中嵌入 IPv4 地址 | |
const octet = '(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])'; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>grid</title> | |
<style> | |
html, | |
body { |
This file contains hidden or 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
# global config | |
# init config | |
init-author-name = blackcater | |
init-author-email = [email protected] | |
init-author-url = https://blackcater.com | |
# git tag message | |
message = "chore: version bump to v%s" |
This file contains hidden or 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
import { EventEmitter } from 'events'; | |
import { | |
eq as isVersionsEqual, | |
gt as isVersionGreaterThan, | |
lt as isVersionLessThan, | |
parse as parseVersion, | |
} from 'semver'; | |
import { safeLoad } from 'js-yaml'; | |
import { app, shell, net } from 'electron'; | |
import { Logger } from '../logger'; |
This file contains hidden or 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
// UOS 或 deepin 打包流程 | |
// 参考 https://www.vvave.net/archives/how-to-build-a-debian-series-distros-installation-package.html | |
// sudo apt-get install dh-make | |
// sudo apt-get install build-essential | |
const fs = require('fs-extra'); | |
const path = require('path'); | |
const { spawn } = require('child_process'); | |
const globby = require('globby'); |
This file contains hidden or 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
# package-lock=false | |
registry="https://registry.npm.taobao.org" | |
disturl="https://npm.taobao.org/dist" | |
nvm_nodejs_org_mirror="http://npm.taobao.org/mirrors/node" | |
nodejs_org_mirror="http://npm.taobao.org/mirrors/node" | |
sass_binary_site="http://npm.taobao.org/mirrors/node-sass" | |
electron_mirror="http://npm.taobao.org/mirrors/electron/" | |
SQLITE3_BINARY_SITE="http://npm.taobao.org/mirrors/sqlite3" | |
profiler_binary_host_mirror="http://npm.taobao.org/mirrors/node-inspector/" | |
node_inspector_cdnurl="https://npm.taobao.org/mirrors/node-inspector" |
This file contains hidden or 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
registry "https://registry.npm.taobao.org" | |
disturl "https://npm.taobao.org/dist" | |
nvm_nodejs_org_mirror "http://npm.taobao.org/mirrors/node" | |
NODEJS_ORG_MIRROR "http://npm.taobao.org/mirrors/node" | |
sass_binary_site "http://npm.taobao.org/mirrors/node-sass" | |
electron_mirror "http://npm.taobao.org/mirrors/electron/" | |
SQLITE3_BINARY_SITE "http://npm.taobao.org/mirrors/sqlite3" | |
profiler_binary_host_mirror "http://npm.taobao.org/mirrors/node-inspector/" | |
node_inspector_cdnurl "https://npm.taobao.org/mirrors/node-inspector" | |
selenium_cdnurl "http://npm.taobao.org/mirrors/selenium" |
This file contains hidden or 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
function FilterContactInfo($str){ // 过滤手机号码、QQ号、邮箱、地址 | |
$str = preg_replace('/(Q|Q|扣扣|企鹅|扣|联系|手机|电话|号)+[:[:punct:]一二三四五六七八九零壹贰叁肆伍陆柒捌玖\d1234567890①②③⑤]+/i', '', $str); | |
// 过滤网址、邮箱 | |
$str = preg_replace('/(网址|邮箱)*[\::]*[a-z]*\@?[a-z\-]+([\.\。][a-z]+)+/i', '', $str); | |
return $str; | |
} |
NewerOlder