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
| - run: echo 'export PRONTO_PULL_REQUEST_ID=$CIRCLE_PR_NUMBER' >> $BASH_ENV | |
| - run: if [ $PRONTO_PULL_REQUEST_ID != false ]; then pronto run -f github_pr_review -c origin/master; fi |
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
| group :development, :test do | |
| gem 'rubocop', '~> 0.55.0', require: false | |
| end | |
| group :test do | |
| gem 'pronto' | |
| gem 'pronto-rubocop', require: false | |
| end |
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
| alert('hi'); |
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
| alert('hi'); |
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
| diff --git a/brunch-config.js b/brunch-config.js | |
| deleted file mode 100644 | |
| index 28a5d35..0000000 | |
| --- a/brunch-config.js | |
| +++ /dev/null | |
| @@ -1,58 +0,0 @@ | |
| -exports.config = { | |
| - // See http://brunch.io/#documentation for docs. | |
| - files: { | |
| - javascripts: { |
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
| <%= if Map.has_key?(assigns, :other_template) do %> | |
| <%= render_existing view_module(@conn), assigns[:other_template], assigns %> | |
| <% end %> |
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
| const json = '[]'; // pretend this is the result of some api request | |
| let jsonValue = JSON.parse(json); | |
| if (json === null) { | |
| jsonValue = []; | |
| } |
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
| export default function socketUpdates(dispatch) { | |
| socket.connect({ token: localStorage.token }); | |
| const channel = socket.channel('update'); | |
| channel.on('model:add', model => { | |
| dispatch(addModel(model)); | |
| }); | |
| }); |
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
| var webpack = require('webpack'); | |
| var WebpackDevServer = require('webpack-dev-server'); | |
| var config = require('./webpack.config'); | |
| var port = 8000; | |
| config.entry.unshift("webpack-dev-server/client?http://localhost:" + port); | |
| config.entry.unshift("webpack/hot/dev-server"); | |
| config.plugins.push( | |
| new webpack.HotModuleReplacementPlugin() |
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
| class RecipeCreator | |
| attr_reader :recipe | |
| def initialize(params) | |
| @recipe = Recipe.new(params) | |
| end | |
| def save | |
| saved = recipes.save | |