Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| Syntax | |
| <!DOCTYPE [Top Element] [Availability] "[Registration]// [Organization]// [Type] [Label]//[Language]" "[URL]"> | |
| 1 2 3 4 5 6 7 8 | |
| Typical example | |
| <!DOCTYPE HTML PUBLIC “-// W3C// DTD HTML 4.0 Transitional// EN” “http://www.w3.org/TR/html4/loose.dtd”> | |
| 1 2 3 4 5 6 7 8 |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
| web: node src/server.js |
| describe('routes : topics', () => { | |
| beforeEach((done) => { | |
| this.topic; | |
| sequelize.sync({force: true}).then((res) => { | |
| Topic.create({ | |
| title: 'JS Frameworks', | |
| description: 'There is a lot of them' | |
| }) | |
| .then((topic) => { |
| import axios from 'axios'; | |
| const dev = 'http://localhost:4000/api'; | |
| const prod = 'http://your_prod_url/api'; | |
| const baseURL = process.env.NODE_ENV === 'production' ? prod : dev; | |
| const axiosInstance = axios.create({ baseURL, timeout: 30000 }); | |
| axiosInstance.interceptors.request.use((config) => { | |
| return config; |
| Hi |