When creating the SVG, add this bit of D3:
.attr("id","chart")
.attr("viewBox","0 0 960 500")
.attr("perserveAspectRatio","xMinYMid")
Then later in the code, add this bit of jQuery:
| # Beta-quality Landsat 8-oriented windowed pansharpener by Charlie Loyd | |
| # python3 panchunk.py $SCENE/*B{4,3,2,8}.TIF ${SCENE}-pansharp.tif | |
| # Then you may want something like this to brighten it up: | |
| # convert -channel B -gamma 0.96 -channel RGB -sigmoidal-contrast 40,14% ${SCENE}-pansharp.tif ${SCENE}-pretty.tif | |
| # But that will strip geo tags. | |
| import asyncio | |
| import rasterio as rio |
| FROM debian:7 | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN apt-get -qq update \ | |
| && apt-get -qq -y --no-install-recommends install \ | |
| autoconf \ | |
| automake \ | |
| build-essential \ | |
| curl \ |
| # hackety hack | |
| from sys import argv | |
| import rasterio as rio | |
| import numpy as np | |
| from sklearn import decomposition | |
| with rio.open(argv[1]) as src: | |
| count = src.meta['count'] |
| # Note – this is not a bash script (some of the steps require reboot) | |
| # I named it .sh just so Github does correct syntax highlighting. | |
| # | |
| # This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5 | |
| # | |
| # The CUDA part is mostly based on this excellent blog post: | |
| # http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/ | |
| # Install various packages | |
| sudo apt-get update |
Read more at http://about.travis-ci.org/blog/2012-11-27-shipping-the-new-travis-ci-ui-for-pro/
In my app, I do not use default rails integration tests, instead I use cucumber for it. Due to the fact cucumber does not override rake test:integrations and must be execute separately. Below is a solution that I came up with to have your Travis running units + functionals + cucumber tests:
First creating a simple bash script at RAILS_ROOT/ci.sh:
#!/bin/bash
case $1 in