Updated 4/11/2018
Here's my experience of installing the NVIDIA CUDA kit 9.0 on a fresh install of Ubuntu Desktop 16.04.4 LTS.
| W = 500 | |
| H = 585 | |
| W1 = W - 1 | |
| H1 = H - 1 | |
| def setup | |
| @img = load_image '../scratch/girl.png' | |
| @img.filter BLUR, 3 | |
| @img.load_pixels | |
| end | 
| a4b.amazonaws.com | |
| access-analyzer.amazonaws.com | |
| account.amazonaws.com | |
| acm-pca.amazonaws.com | |
| acm.amazonaws.com | |
| airflow-env.amazonaws.com | |
| airflow.amazonaws.com | |
| alexa-appkit.amazon.com | |
| alexa-connectedhome.amazon.com | |
| amazonmq.amazonaws.com | 
Updated 4/11/2018
Here's my experience of installing the NVIDIA CUDA kit 9.0 on a fresh install of Ubuntu Desktop 16.04.4 LTS.
| 'use strict'; | |
| exports.handler = (event, context, callback) => { | |
| // Get request and request headers | |
| const request = event.Records[0].cf.request; | |
| const headers = request.headers; | |
| // Configure authentication | |
| const authUser = 'user'; | |
| const authPass = 'pass'; | 
| license: mit | |
| height: 900 | 
| import { line, curve, curveCatmullRom } from "d3-shape"; | |
| import { scaleTime, scaleLinear } from "d3-scale"; | |
| import { axisBottom, axisLeft } from 'd3-axis'; | |
| import { timeParse, isoFormat } from "d3-time-format"; | |
| import { select } from "d3-selection"; | |
| import { extent, max, min } from "d3-array"; | |
| export default { | |
| line: line, | |
| scaleTime: scaleTime, | 
| licence: mit | 
| function randDarkColor() { | |
| var lum = -0.25; | |
| var hex = String('#' + Math.random().toString(16).slice(2, 8).toUpperCase()).replace(/[^0-9a-f]/gi, ''); | |
| if (hex.length < 6) { | |
| hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; | |
| } | |
| var rgb = "#", | |
| c, i; | |
| for (i = 0; i < 3; i++) { | |
| c = parseInt(hex.substr(i * 2, 2), 16); | 
| axios({ | |
| url: 'http://localhost:5000/static/example.pdf', | |
| method: 'GET', | |
| responseType: 'blob', // important | |
| }).then((response) => { | |
| const url = window.URL.createObjectURL(new Blob([response.data])); | |
| const link = document.createElement('a'); | |
| link.href = url; | |
| link.setAttribute('download', 'file.pdf'); | |
| document.body.appendChild(link); | 
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.7.4/d3.js"></script> | |
| </head> | |
| <body> | |
| <div id="heap"> | |
| </div> | |
| <script src="main.js"></script> |