- Вступительная статья на MDN, полезна как набор ссылок на другие статьи.
- Статьи от Rachel Andrew на MDN.
- Собрал примеры использования Grid на CodePen.

| # | |
| # Ubuntu Node.js Dockerfile | |
| # | |
| # https://github.com/dockerfile/ubuntu/blob/master/Dockerfile | |
| # https://docs.docker.com/examples/nodejs_web_app/ | |
| # | |
| # Pull base image. | |
| FROM ubuntu:14.04 |

| Seems that node-gyp isn't following the 302 Redirect sent by atom.io. | |
| @fujisaks Thanks for pointing to the problem! | |
| I've been able to workaround the issue by setting the ATOM_NODE_URL env variable to the new url (after redirect ). This should also be working after you update Atom. However, remove the entry when the bug gets fixed! | |
| Windows temporary: | |
| set ATOM_NODE_URL=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist | |
| Windows permanently: |
| function updateTask(oldTask, newTask) { | |
| var promise = new Promise(function (resolve, reject) { | |
| resolve({status: 'success'}); | |
| // resolve(Error('some error')); | |
| }); | |
| return promise; | |
| } |
| (function () { | |
| 'use strict'; | |
| let user = {}; | |
| let proxy = new Proxy(user, { | |
| get(target, prop) { | |
| console.log(`Чтение ${prop}`); | |
| return target[prop]; | |
| }, |
| (function () { | |
| 'use strict'; | |
| let map = new Map(); | |
| map.set('1', 'str1'); // key: string | |
| map.set(1, 'num1'); // key: number | |
| map.set(true, 'bool1'); // key: bool | |
| // in ordinary objects that would be the same, |
| (function () { | |
| 'use strict'; | |
| let range = { | |
| from: 1, | |
| to: 5 | |
| } | |
| // make object range iterable | |
| range[Symbol.iterator] = function() { |
| // send to current request socket client | |
| socket.emit('message', "this is a test"); | |
| // sending to all clients, include sender | |
| io.sockets.emit('message', "this is a test"); | |
| // sending to all clients except sender | |
| socket.broadcast.emit('message', "this is a test"); | |
| // sending to all clients in 'game' room(channel) except sender |
| # on OS X file must be named .bash_profile | |
| # real clear screen, not just add new line http://superuser.com/questions/576410/how-can-i-partially-clear-my-terminal-scrollback | |
| alias cls="printf '\e]50;ClearScrollback\a'" |