https://gist.github.com/noru/0786b119f324c33a4925447a8ec1fec6
下面操作如用到相应值在此列表中查询并替换
| 变量名 | 值 | 描述 |
|---|---|---|
| CashierHost | vercel.xiuz.hu/topup | 收银台网址 |
| BFPayHost | 43.156.177.238:17083 | BFPay平台网址 |
| ServiceHost | ec2-54-153-74-136.us-west-1.compute.amazonaws.com:3001 | 后台网址 |
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
| alias d='docker' | |
| alias db='docker build' | |
| alias dr='docker run -itd' | |
| alias da='docker attach' | |
| alias dp='docker ps' | |
| alias g='git' | |
| alias gp='git pull --rebase' | |
| alias gb='git branch' | |
| alias gs='git stash' |
- Use
curlto get the JSON response for the latest release - Use
grepto find the line containing file URL - Use
cutandtrto extract the URL - Use
wgetto download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
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
| { | |
| "compilerOptions": { | |
| /* Basic Options */ | |
| "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */ | |
| "module": "esnext", /* Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */ | |
| "lib": [ | |
| "es5", | |
| "es2015", | |
| "dom", | |
| "dom.iterable", |
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
| { | |
| "defaultSeverity": "error", | |
| "extends": [ | |
| "tslint:recommended" | |
| ], | |
| "jsRules": { | |
| "variable-name": [ | |
| true, | |
| "check-format", | |
| "allow-leading-underscore", |
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
| /** | |
| * @param {number[]} nums | |
| * @param {number} target | |
| * @return {number} | |
| */ | |
| var searchInsert = function(nums, target) { | |
| let start = 0 | |
| let end = nums.length - 1 | |
| if (nums[end] < target) { |
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
| { | |
| class BinaryHeap { | |
| constructor() { | |
| this.data = [] | |
| } | |
| insert(element) { | |
| this.data.push(element) |
Vim has two modes insertion mode and command mode. The editor begins in command mode, where the cursor movement and text deletion and pasting occur. Insertion mode begins upon entering an insertion or change command. [ESC] returns the editor to command mode (where you can quit, for example by typing :q!). Most commands execute as soon as you type them except for "colon" commands which execute when you press the ruturn key.
:xExit, saving changes:qExit as long as there have been no changesZZExit and save changes if any have been made:q!Exit and ignore any changes
NewerOlder