You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| // keybindings.json | |
| // Command Pallette > Open Keyboard Shortcuts (JSON) | |
| [ | |
| { | |
| "key": "cmd+shift+l", | |
| "command": "editor.action.insertSnippet", | |
| "when": "editorTextFocus", | |
| "args": { | |
| "snippet": "console.log(${TM_SELECTED_TEXT}$1)$0;" |
It's great for beginners. Then it turns into a mess.
| const FullHeightPage = () => ( | |
| <div> | |
| Hello World! | |
| <style global jsx>{` | |
| html, | |
| body, | |
| body > div:first-child, | |
| div#__next, | |
| div#__next > div { | |
| height: 100%; |
To send a request via the sandbox, you can use pm.sendRequest.
pm.test("Status code is 200", function () {
pm.sendRequest('https://postman-echo.com/get', function (err, res) {
pm.expect(err).to.not.be.ok;
pm.expect(res).to.have.property('code', 200);
pm.expect(res).to.have.property('status', 'OK');
});
});
| // Node 8+ | |
| // -------------------------------------------------------------- | |
| // No external dependencies | |
| const { promisify } = require('util'); | |
| const { resolve } = require('path'); | |
| const fs = require('fs'); | |
| const readdir = promisify(fs.readdir); | |
| const stat = promisify(fs.stat); |
See demo
| (use '[clojure.core.match :only [match]]) | |
| (defn evaluate [env [sym x y]] | |
| (match [sym] | |
| ['Number] x | |
| ['Add] (+ (evaluate env x) (evaluate env y)) | |
| ['Multiply] (* (evaluate env x) (evaluate env y)) | |
| ['Variable] (env x))) | |
| (def environment {"a" 3, "b" 4, "c" 5}) |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream