- Array 数组
- Stack 堆栈
- Queue 队列
- MinPriorityQueue 最小值优先队列
- MaxPriorityQueue 最大值优先队列
- LinkedList 链表
- Set 集合
- Dictionary 字典
- HashTable 散列表
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
| #docker run -d -p 8022:22 -p 3000:3000 -p 3001:3001 -p 3002:3002 -p 31500:31500 -p 31511:31511 -p 31512:31512 -p 8000:8000 -p 139:139 -p 145:145 --privileged -it --restart=always --name u_1 ubuntuok1 | |
| version: '3.3' | |
| services: | |
| ubuntuok1: | |
| ports: | |
| - '8022:22' | |
| - '3000:3000' | |
| - '3001:3001' | |
| - '3002:3002' |
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
| const deepMergePure = (dst, src)=>{ | |
| const simpleClone = (jsonObj)=>{ | |
| return JSON.parse(JSON.stringify(jsonObj)); | |
| } | |
| //////deep-merge.js start | |
| const merge = (target, source) => { | |
| // Iterate through `source` properties and if an `Object` set property to merge of `target` and `source` properties | |
| for (let key of Object.keys(source)) { | |
| if (source[key] instanceof Object) Object.assign(source[key], merge(target[key], source[key])); | |
| } |
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
| require 'Formulary' | |
| def mysql_installed? | |
| `which mysql_config`.length > 0 | |
| end | |
| class Php < Formula | |
| url 'http://museum.php.net/php5/php-5.2.17.tar.gz' | |
| homepage '' | |
| sha256 '1abe07c1fdd64184708a3ba179abcfcca5662a4e0d2037eb2748b75abc42e767' |
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
| http_proxy=http://127.0.0.1:8123 |
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
| socksParentProxy = "127.0.0.1:1080" | |
| socksProxyType = socks5 | |
| proxyAddress = "127.0.0.1" | |
| proxyPort = 8123 |
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
| socks5 = "127.0.0.1:1080" |