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
| . ~/.bash_aliases | |
| [ -z "$PS1" ] && return | |
| eval "$(direnv hook zsh)" | |
| autoload -Uz compinit | |
| compinit |
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
| // Generated by CoffeeScript 2.6.1 | |
| // ==UserScript== | |
| // @grant GM_getResourceText | |
| // @grant GM_addStyle | |
| // @grant GM_xmlhttpRequest | |
| // @name 外卖采集账户绑定 | |
| // @namespace https://wmdyy.coding.net/p/dyy/d/tampermonkey | |
| // @version 0.0.26 | |
| // @author xpure@foxmail.com | |
| // @updateURL https://wmdyy.coding.net/p/dyy/d/tampermonkey/git/raw/master/version |
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
| 会员号,金额,下单时间,注册时间 | |
| 74876,188,2019/5/10,2019/5/10 | |
| 76189,99,2019/1/26,2019/1/25 | |
| 77357,198,2019/6/25,2019/6/25 | |
| 100851,298,2019/1/31,2019/1/31 | |
| 101123,108,2019/5/13,2019/5/13 | |
| 101123,88,2019/4/16,2019/4/15 | |
| 101228,99,2019/3/22,2019/3/22 | |
| 102266,169,2019/6/8,2019/6/8 | |
| 102270,158,2019/4/7,2019/4/6 |
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
| #!/usr/bin/env bash | |
| branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' |awk -F' ' '{print $2}'` | |
| git add --update :/ && git commit -m "🔶" | |
| git pull origin $branch | |
| branch=`git branch|awk '{print $2}'` |
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
| // Generated by CoffeeScript 2.6.1 | |
| (function() { | |
| var hex, sha1, sign; | |
| sha1 = function(str) { | |
| var buffer; | |
| // We transform the string into an arraybuffer. | |
| buffer = new TextEncoder('utf-8').encode(str); | |
| return crypto.subtle.digest('SHA-1', buffer).then(function(hash) { | |
| return hex(hash); |
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
| worker_processes ${CPU_N}; | |
| events { | |
| } | |
| http { | |
| server_tokens off; | |
| gzip on; | |
| gzip_min_length 1k; |
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
| ❯ ./sign.coffee ../../release/帧享-darwin-x64/帧享.app | |
| (node:65148) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time | |
| at emitExperimentalWarning (node:internal/util:224:11) | |
| at initializeLoader (node:internal/process/esm_loader:59:3) | |
| at loadESM (node:internal/process/esm_loader:87:11) | |
| at runMainESM (node:internal/modules/run_main:51:21) | |
| at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:74:5) | |
| at node:internal/main/run_main_module:17:47 | |
| sign /Users/z/git/rv/ci/release/帧享-darwin-x64/帧享.app | |
| undefined |
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
| " 安装 vi +PlugInstall +qall | |
| source /etc/vim/plug.vim | |
| call plug#begin('/etc/vim/plug') | |
| Plug 'jacoborus/tender.vim' | |
| Plug 'yegappan/mru' " 最近打开过的文件 | |
| Plug 'tomtom/tcomment_vim' " 批量注释 | |
| Plug 'ollykel/v-vim' | |
| Plug 'alaviss/nim.nvim' | |
| Plug 'prabirshrestha/asyncomplete.vim' | |
| Plug 'prabirshrestha/async.vim' |
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
| 1 |
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
| diff --git a/src/index.coffee b/src/index.coffee | |
| index ab9b458..7627e18 100644 | |
| --- a/src/index.coffee | |
| +++ b/src/index.coffee | |
| @@ -1,9 +1,9 @@ | |
| #!/usr/bin/env coffee | |
| import { readFile } from "fs/promises" | |
| -import { readFileSync } from "fs" | |
| +import { readFileSync, existsSync } from "fs" |