You can easily scrape (or download) a site with a CLI tool called wget. It's available for Linux, Mac and Windows.
I recommend using Homebrew, especially if you're on a Mac, to install it.
brew install wget
| var supportsES6 = function() { | |
| try { | |
| new Function("(a = 0) => a"); | |
| return true; | |
| } | |
| catch (err) { | |
| return false; | |
| } | |
| }(); |
You can easily scrape (or download) a site with a CLI tool called wget. It's available for Linux, Mac and Windows.
I recommend using Homebrew, especially if you're on a Mac, to install it.
brew install wget
| echo "Instant Mac Setup: This will run mikaelvesavuori/dotfiles without any previous download"; | |
| git clone https://github.com/mikaelvesavuori/dotfiles.git | |
| cd dotfiles | |
| sh setup-mac.sh |
| ### Node ### | |
| # Dependency directories | |
| /node_modules | |
| # dotenv environment variables file(s) | |
| .env | |
| .env.* | |
| # Build generated |
| const fs = require('fs'); | |
| const path = require('path'); | |
| function copyFile(source, target) { | |
| let targetFile = target; | |
| if (fs.existsSync(target) && fs.lstatSync(target).isDirectory()) targetFile = path.join(target, path.basename(source)) | |
| fs.writeFileSync(targetFile, fs.readFileSync(source)); | |
| } |
| # Generate key | |
| ssh-keygen -t rsa -b 4096 | |
| # Copy public key to clipboard | |
| pbcopy < ~/.ssh/id_rsa.pub |
| # Gist: Troubleshooting Gulp and NPM | |
| ## Unclean installation/execution errors via NPM (ENOENT, no such file, cannot find...) | |
| Lots of things you can usually fix with the following two-step procedure. | |
| In your CLI: | |
| - npm update | |
| - npm install | |
| - If using sass: npm rebuild node-sass | |
| ## Problems with access rights (Windows) |
| { | |
| "emmet.triggerExpansionOnTab": true, | |
| "eslint.packageManager": "yarn", | |
| "tslint.enable": true, | |
| "tslint.jsEnable": true, | |
| "workbench.colorTheme": "Palenight Theme", | |
| "workbench.startupEditor": "newUntitledFile", | |
| "html.format.wrapLineLength": 200, | |
| "typescript.check.npmIsInstalled": true, | |
| "javascript.validate.enable": false, |
| const baseConfig = require("./webpack.config"); | |
| const path = require("path"); | |
| module.exports = Object.assign( | |
| {}, | |
| { | |
| target: "node", | |
| entry: "./src/ServerApp.jsx", | |
| output: { | |
| filename: "server.bundle.js", |
| { | |
| "terminal.integrated.rendererType": "canvas", | |
| "terminal.integrated.fontFamily": "Fira Code", | |
| "terminal.integrated.fontSize": 12, | |
| "terminal.integrated.fontWeight": "100", | |
| "terminal.integrated.fontWeightBold": "bold", | |
| "editor.multiCursorModifier": "ctrlCmd", | |
| "editor.fontFamily": "Fira Code, monospace", | |
| "editor.fontLigatures": true, | |
| "editor.fontSize": 13, |