Recognise, don't reconstruct.
main Morgen werk ik thuis.
| /* eslint-disable no-console */ | |
| const https = require('https'); | |
| const fetch = require('node-fetch'); | |
| const ntlm = require('httpntlm').ntlm; | |
| const keepAlive = new https.Agent({ keepAlive: true }); | |
| const handleErrors = (response) => { | |
| if (!response.ok) { |
| Shortcut | Description |
|---|---|
| ⌘K ⌘S | Keyboard Shortcuts |
| ⇧⌘P, F1 | Show Command Palette |
| ⌘P | Quick Open, Go to File… |
| ⌥↓ / ⌥↑ | Move line down/up |
| ⇧⌥↓ / ⇧⌥↑ | Copy line down/up |
| Multi-cursor and selection | |
| ⌥ + click | Insert cursor |
| ⌥⌘↑ | Insert cursor above |
| Key/Command | Description |
|---|---|
| Tab | Auto-complete files and folder names |
| Ctrl + A | Go to the beginning of the line you are currently typing on |
| Ctrl + E | Go to the end of the line you are currently typing on |
| Ctrl + U | Clear the line before the cursor |
| Ctrl + K | Clear the line after the cursor |
| Ctrl + W | Delete the word before the cursor |
| Ctrl + T | Swap the last two characters before the cursor |
| #!/bin/bash | |
| ############################################################################## | |
| # SHORTCUTS | |
| ############################################################################## | |
| CTRL+A # move to beginning of line | |
| CTRL+B # moves backward one character | |
| CTRL+C # halts the current command | |
| CTRL+D # deletes one character backward or logs out of current session, similar to exit |
Without params
curl https://jsonplaceholder.typicode.com/todos - GET
curl -X POST https://jsonplaceholder.typicode.com/todoscurl -H "Accept: application/json" https://jsonplaceholder.typicode.com/todoscurl -X POST -d "{ id: '1' }" https://jsonplaceholder.typicode.com/todos| class Wrapper { | |
| constructor(value) { | |
| this._value=value; | |
| } | |
| map(f) { | |
| return f(this._value); | |
| } | |
| fmap(f) { | |
| return new Wrapper(f(this._value)); | |
| } |