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
| #!/bin/sh | |
| # wget --mirror --adjust-extension --page-requisites --execute robots=off --wait=30 --rand om-wait --convert-links --user-agent=Mozilla http://www.example.com | |
| ### V1 | |
| # wget \ | |
| # --recursive \ | |
| # --no-clobber \ | |
| # --page-requisites \ | |
| # --html-extension \ |
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
| // ES6 flag --harmony_default_parameters needed when run in Node 5.0.0 | |
| function mergesort(list, compare = (x, y) => {return x < y} ) { | |
| // breaking recursive call | |
| if(list.length <= 1) return list; | |
| // ES6 flag --harmony_destructuring needed when run in Node 5.0.0 | |
| var {leftHalf, rigthHalf } = splitList(list); | |
| // Recursive call. |