Proxy to services based on Accept header.
docker-compose up -d
| FROM elixir:slim | |
| # install Node.js (>= 8.0.0) and NPM in order to satisfy brunch.io dependencies | |
| # See https://hexdocs.pm/phoenix/installation.html#node-js-5-0-0 | |
| RUN apt-get update -y && \ | |
| apt-get install -y curl git && \ | |
| curl -sL https://deb.nodesource.com/setup_13.x | bash - && \ | |
| apt-get install -y inotify-tools nodejs | |
| WORKDIR /code | 
| import os | |
| import logging | |
| LOGLEVEL = os.environ.get('LOGLEVEL', 'INFO').upper() | |
| logging.basicConfig(level=LOGLEVEL, format="%(asctime)s %(message)s") | 
| defmodule Plug.Traefik do | |
| use Plug.Builder | |
| @assets_dir System.cwd <> "/priv/web/assets/" | |
| plug Plug.Static, at: "/assets", from: @assets_dir | |
| plug :x_forwarded_prefix | |
| def x_forwarded_prefix(conn, _) do | |
| register_before_send(conn, fn(conn) -> | 
Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.
All files were downloaded from https://cdnjs.com and named accordingly.
Output from ls command is stripped out (irrelevant stuff)
$ ls -lhS
566K Jan 4 22:03 angular2.min.js
| var app = angular.module('app', ['firebase']); | |
| app.controller('ctrl', function($scope, $pageArray) { | |
| $scope.pageItems = $pageArray(ref, 'number'); | |
| }); | |
| app.factory('$pageArray', function($firebaseArray) { | |
| return function(ref, field) { | |
| // create a Paginate reference | |
| var pageRef = new Firebase.util.Paginate(ref, field, {maxCacheSize: 250}); | 
| function uploadPdfOcr() { | |
| authorize(); | |
| var key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // <-- developer key | |
| var file = UrlFetchApp.fetch("http://somewhere.com/path/file.pdf").getBlob(); | |
| var metadata = { title: file.getName() } | |
| var params = {method:"post", | |
| oAuthServiceName: "drive", | |
| oAuthUseToken: "always", | |
| contentType: "application/pdf", | |
| contentLength: file.getBytes().length, | 
0.6: http://d.pr/g5z3
md5: 4c5ba5a26bac6f9bd24a40513171c448
0.7: http://d.pr/qXtg
md5: e58d282d591b27952bd14820f642d896
| require File.expand_path('../config/application', __FILE__) | |
| require 'rake' | |
| module ::Dpp | |
| class Application | |
| include Rake::DSL | |
| end | |
| end | |
| module ::RakeFileUtils |