This is a command in the Docker Quickstart Terminal
$ This is a command run inside the docker host or inside a container (linux etc, eg after docker-machine ssh default
or docker run -it ubuntu bash
)
- start docker quick-start terminal
'use strict'; | |
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
(function() { | |
// Update 'version' if you need to refresh the cache | |
var staticCacheName = 'static'; | |
var version = 'v1::'; |
{ | |
"query":{ | |
"has_child":{ | |
"query":{ | |
"function_score":{ | |
"functions":[ | |
{ | |
"field_value_factor":{ | |
"factor":1, | |
"field":"count" |
frontend https-in | |
mode tcp | |
bind *:443 ssl crt /etc/ssl/dummy.pem alpn h2,http/1.1 | |
use_backend nodes-http2 if { ssl_fc_alpn -i h2 } | |
default_backend nodes-http | |
backend nodes-http | |
server node1 web.server:80 check | |
backend nodes-http2 |
var pg = require('pg'); | |
var faker = require('faker'); | |
var Promise = require('bluebird'); | |
var uuid = require('node-uuid'); | |
// create a config to configure both pooling behavior | |
// and client options | |
// note: all config is optional and the environment variables | |
// will be read if the config is not present | |
var config = { |
Given a schema with three entities cases
,products
,noxe
where cases
and products
link to noxe via field data__noxe
and where the type noxe
is a union of two major versions Noxe_v1
and Noxe_v2
.
If the noxe
should be filtered (by parent AND other properties) then the code to filter might be duplicated
if put into the resolvers naively. The code can be easily be factored out but the duplication in the arguments remains AND
is complicated by the fact that different filters might be needed for different versions of Noxe.
Looking at the line 4: data__noxe(match:"some n2") {
we can see an argument data__value
which is supposed to define
a filter on field data__value
. When adding another filter only present in one of the versions
data__noxe(data__value:"eq:some n2" data__sometext:"contains:some") {
// _decimal.scss | MIT License | gist.github.com/terkel/4373420 | |
// Round a number to specified digits. | |
// | |
// @param {Number} $number A number to round | |
// @param {Number} [$digits:0] Digits to output | |
// @param {String} [$mode:round] (round|ceil|floor) How to round a number | |
// @return {Number} A rounded number | |
// @example | |
// decimal-round(0.333) => 0 |
#include <cmath> | |
#include <assert.h> | |
#include <core/TestPattern.h> | |
TestPattern::TestPattern() | |
:w(0) | |
,h(0) | |
,frame_num(0) | |
,duration(0) |
{ | |
"main": "dist/allServicesWrappedByOneService.umd.min.js", | |
"exports": "service" | |
} |