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
| package com.comprehend.panacea.util | |
| /** | |
| * Created by yongjunj on 7/8/15. | |
| * | |
| * There seems to be a known issue with XMLEventReader hanging: | |
| * 1. https://issues.scala-lang.org/browse/SI-3881 | |
| * 2. https://issues.scala-lang.org/browse/SI-4599 | |
| * 3. http://goo.gl/JL6BsR | |
| * |
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
| { | |
| "scales": [ | |
| { | |
| "name": "x-scale", | |
| "range": "width", | |
| "type": "ordinal", | |
| "padding": 0.4, | |
| "domain": { | |
| "data": "table", | |
| "field": "data.x" |
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
| - name: Running Veblen server Docker image | |
| docker: docker_url={{ DOCKER_URL }} image="{{ DOCKER_IMAGE_NAME }}:{{ DOCKER_IMAGE_TAG }}" ports="{{ item.port }}" env="{{ item.env }}" volumes="{{ item.volumes }}" detach=true state=running | |
| with_items: DOCKER_RUN_PARAMS |
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
| --- | |
| - name: Uploading docker build context | |
| copy: src=docker/app/ dest="{{ DOCKER_BUILD_PATH }}" force=yes | |
| - name: Building server Docker image | |
| docker_image: docker_url={{ DOCKER_URL }} name={{ DOCKER_IMAGE_NAME }} tag={{ DOCKER_IMAGE_TAG }} path={{ DOCKER_BUILD_PATH }} state=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
| --- | |
| - hosts: docker_host | |
| user: root | |
| serial: 1 | |
| pre_tasks: | |
| - name: disable the server in haproxy | |
| sudo: true | |
| shell: echo "disable server some_haproxy_prefix_{{ item.port }}" | socat stdio /var/run/haproxy/admin.sock | |
| delegate_to: "{{ HAPROXY_URL }}" |
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
| { | |
| "width": 500, | |
| "height": 200, | |
| "data": [ | |
| { | |
| "name": "stocks", | |
| "url": "data/stocks.csv", | |
| "format": {"type": "csv", "parse": {"price":"number", "date":"date"}}, | |
| "transform": [ | |
| { |
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
| { | |
| "width": 500, | |
| "height": 200, | |
| "data": [ | |
| { | |
| "name": "stocks", | |
| "url": "data/stocks.csv", | |
| "format": {"type": "csv", "parse": {"price":"number", "date":"date"}}, | |
| "transform": [ | |
| { |
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
| { | |
| "width": 500, | |
| "height": 200, | |
| "data": [ | |
| { | |
| "name": "stocks", | |
| "url": "data/stocks.csv", | |
| "format": {"type": "csv", "parse": {"price":"number", "date":"date"}} | |
| } | |
| ], |