This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require("sys"); | |
var fs = require('fs') | |
var adjectives = []; | |
var animals = []; | |
var stdin = process.openStdin(); | |
stdin.addListener("data", function(d) { | |
if (adjectives.length === 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE /restaurants | |
PUT /restaurants | |
{ | |
"mappings": { | |
"restaurant": { | |
"properties": { | |
"suggest": { | |
"type": "completion", | |
"payloads" : true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:0.10.32-onbuild | |
EXPOSE 3000 |