Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.
- Go to
settings. - Search for
live templates. - Under the javascript section you should be able to manage your templates.
| pm.sendRequest({ | |
| url: '{{your url}}', | |
| method: 'POST', | |
| header: { | |
| 'Content-Type': 'multipart/form-data', | |
| }, | |
| body: { | |
| mode: 'formdata', | |
| formdata: [ |
| export const getViewState = state => Object.assign({}, state, { | |
| // return a list of users active during this session | |
| recentlyActiveUsers: [...new Set(state.chatLog.map(chat => chat.user))] | |
| }); |
| { | |
| // http://eslint.org/docs/rules/ | |
| "env": { | |
| "browser": true, // browser global variables. | |
| "node": false, // Node.js global variables and Node.js-specific rules. | |
| "worker": false, // web workers global variables. | |
| "amd": false, // defines require() and define() as global variables as per the amd spec. | |
| "mocha": false, // adds all of the Mocha testing global variables. | |
| "jasmine": false, // adds all of the Jasmine testing global variables for version 1.3 and 2.0. |
| /* http://twitter.github.com/bootstrap/scaffolding.html#responsive */ | |
| /* Landscape phones and down */ | |
| @media (max-width: 480px) { ... } | |
| /* Landscape phone to portrait tablet */ | |
| @media (max-width: 768px) { ... } | |
| /* Portrait tablet to landscape and desktop */ | |
| @media (min-width: 768px) and (max-width: 940px) { ... } |
| iPad | |
| 1024 × 690 In landscape on iOS 4.3 | |
| 1024 × 672 In landscape on iOS 5 | |
| 768 × 946 In portrait on iOS 4.3 | |
| 768 × 928 In portrait on iOS 5 | |
| 1024 × 660 Always showing bookmarks bar in landscape on iOS 4.3 | |
| 1024 × 644 Always showing bookmarks bar in landscape on iOS 5 | |
| 768 × 916 Always showing bookmarks bar in portrait on iOS 4.3 |