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
| """Python wrappers around Brain. | |
| This file is MACHINE GENERATED! Do not edit. | |
| """ | |
| from google.protobuf import text_format | |
| from tensorflow.core.framework import op_def_pb2 | |
| from tensorflow.python.framework import op_def_registry | |
| from tensorflow.python.framework import ops |
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
| { | |
| ... | |
| output: { | |
| path: outputPath, | |
| publicPath: "https://cnd.com/production/js/", // hostname needs to match Rails config | |
| filename: '[name]-[chunkhash].js' | |
| }, | |
| plugins: [ | |
| new AssetsPlugin({ path: outputPath }), | |
| new webpack.optimize.UglifyJsPlugin(), |
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
| // Before, with Sprockets: | |
| //= require style | |
| //= require tablesort | |
| //= require tooltipster | |
| //= require jquery-ui | |
| // ... | |
| @import 'variables'; | |
| @import 'overall'; | |
| @import 'type'; |
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
| # Before, Sprockets: | |
| <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => false %> | |
| <%= javascript_include_tag 'application', 'data-turbolinks-track' => false %> | |
| # After, a plain artifact: | |
| <script src="/webpack_build/dev/webpack_bundle.js"></script> |
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
| # Asset compilation works by having the webpack container continually build an artifact, | |
| # and that artifact being mounted for Rails to serve statically. | |
| webpack: | |
| build: webpack/. | |
| command: npm run watch | |
| volumes: | |
| - ./webpack/config:/mnt/webpack/config | |
| - ./webpack/src:/mnt/webpack/src | |
| - ./volumes/webpack_build:/mnt/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
| FROM node:4.2.2 | |
| RUN npm install -g webpack | |
| COPY package.json /mnt/webpack/ | |
| WORKDIR /mnt/webpack | |
| RUN npm install | |
| COPY . /mnt/webpack/ |
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
| // Sprockets style: | |
| //= require jquery | |
| //= require profile | |
| //= require profile_interventions | |
| //= require session_timeout_warning | |
| // CommonJS style: | |
| window.jQuery = window.$ = require('jquery'); | |
| require('./profile'); | |
| require('./profile_interventions'); |
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
| FROM ruby:2.2 | |
| # see update.sh for why all "apt-get install"s have to stay as one long line | |
| RUN apt-get update && apt-get install -y nodejs --no-install-recommends && rm -rf /var/lib/apt/lists/* | |
| # see http://guides.rubyonrails.org/command_line.html#rails-dbconsole | |
| RUN apt-get update && apt-get install -y mysql-client postgresql-client sqlite3 --no-install-recommends && rm -rf /var/lib/apt/lists/* | |
| ENV RAILS_VERSION 4.2.5 |