curl -XPOST 'localhost:9200/_search?pretty' -H 'Content-Type: application/json' -d'
{
"query": {
"bool" : {
"must_not" : {
"term" : { "choice" : "A" }
},
"must" : {
"term" : { "choice" : "B" }
curl -XPOST 'localhost:9200/_search?pretty' -H 'Content-Type: application/json' -d'
{
"query": {
"term" : { "choice" : "B" }
}
}
'
curl -XPUT 'localhost:9200/answers/user/1?pretty' -H 'Content-Type: application/json' -d'
{
"user" : 1,
"choice" : [ "A", "B", "C" ]
}
'
curl -XPUT 'localhost:9200/answers?pretty' -H 'Content-Type: application/json' -d'
{
"mappings": {
"user": {
"_all": { "enabled": false },
"properties": {
"user": { "type": "integer" },
"choice": { "type": "keyword" }
}
This file contains hidden or 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
| Starting Step #1 | |
| Step #1: | |
| Step #1: > foo@ build /app | |
| Step #1: > ls ./node_modules/redux-tower && npm run build:tower && ./node_modules/.bin/webpack | |
| Step #1: | |
| Step #1: README.md | |
| Step #1: decls | |
| Step #1: package.json | |
| Step #1: react.js | |
| Step #1: webpack.config.js |
This file contains hidden or 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
| // ... | |
| Starting Step #1 | |
| Step #1: | |
| Step #1: > foo@ build /app | |
| Step #1: > npm run build:tower && ./node_modules/.bin/webpack | |
| Step #1: | |
| Step #1: | |
| Step #1: > foo@ build:tower /app | |
| Step #1: > ./node_modules/.bin/babel ./node_modules/redux-tower/src --out-dir ./node_modules/redux-tower/lib --ignore __tests__ |
This file contains hidden or 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 mhart/alpine-node:7.9.0 | |
| RUN apk update && apk add git | |
| RUN mkdir /app | |
| WORKDIR /app | |
| COPY package.json /app | |
| RUN npm install | |
| COPY . /app | |
| CMD ["npm", "run", "build"] |
This file contains hidden or 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
| steps: | |
| - name: 'gcr.io/cloud-builders/docker' | |
| args: ['build', '-t', 'app-build', '-f', 'Dockerfile.build', '.'] | |
| - name: 'gcr.io/cloud-builders/docker' | |
| args: ['run', '-v', '/workspace/src:/app/src', '-v', '/workspace/build:/app/build', 'app-build'] | |
| - name: 'gcr.io/cloud-builders/docker' | |
| args: ['build', '-t', 'gcr.io/foo/bar:v1', '.'] | |
| images: | |
| - 'gcr.io/foo/bar:v1' |
This file contains hidden or 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
| // ... | |
| "scripts": { | |
| // ... | |
| "build": "npm run build:tower && ./node_modules/.bin/webpack", | |
| "build:tower": "./node_modules/.bin/babel ./node_modules/redux-tower/src --out-dir ./node_modules/redux-tower/lib --ignore __tests__", | |
| // ... | |
| }, | |
| // ... | |
| "dependencies": { | |
| // ... |
This file contains hidden or 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
| open Core.Std | |
| open Async.Std | |
| let rec timer () = | |
| after (sec 5.) | |
| >>= fun _ -> | |
| print_endline "Hello"; | |
| timer () | |
| let _ = |