官术网_书友最值得收藏!

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

var zmq  = require('zmq')
var sink = zmq.socket('pull');
sink.bindSync("tcp://*:5001");

sink.on('message', function(buffer) {
  console.log('Message from worker: ', buffer.toString());
});

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

function produce() {
  [...]
  variationsStream(alphabet, maxLength)
    .on('data', function(combination) {
        [...]
        var msg = {searchHash: searchHash, variations: batch};
 channel.sendToQueue('jobs_queue',
 new Buffer(JSON.stringify(msg)));
        [...]
      }
    })
   [...]
}

Any command-line input or output is written as follows:

node replier
node requestor

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "To explain the problem, we will create a little web spider, a command-line application that takes in a web URL as the input and downloads its contents locally into a file."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 青龙| 济源市| 龙陵县| 福鼎市| 南靖县| 景洪市| 长泰县| 陇南市| 南川市| 三台县| 桐庐县| 肃北| 荆州市| 兴仁县| 莱阳市| 海宁市| 江山市| 上高县| 当涂县| 景东| 鄂尔多斯市| 增城市| 临江市| 衡阳县| 夏邑县| 井研县| 东明县| 渝北区| 武夷山市| 雅安市| 永修县| 湖南省| 关岭| 南木林县| 白朗县| 香港| 洛宁县| 罗平县| 伊吾县| 井冈山市| 东乡族自治县|