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
| import React from "react"; | |
| import ReactDOM from "react-dom"; | |
| import { fromPairs, map, pick } from "ramda"; | |
| /** | |
| * Wraps a React component into Angular component. Returns a new Angular component. | |
| * | |
| * Usage: angular.module('some.module').component('newAngularComponent', react2angular(MyReactComponent)) | |
| * (the usage is the same as in similar lib https://github.com/coatue-oss/react2angular) | |
| */ |
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
| # place the contents of this file in, e.g., spec/re_run_friendly_formatter.rb | |
| # | |
| # and in .rspec: | |
| # | |
| # --format ReRunFriendlyFormatter | |
| require "rspec/core/formatters/progress_formatter" | |
| class ReRunFriendlyFormatter < RSpec::Core::Formatters::ProgressFormatter | |
| RSpec::Core::Formatters.register self, :dump_summary |
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
| # encoding: utf-8 | |
| class AvatarUploader < CarrierWave::Uploader::Base | |
| include CarrierWave::MiniMagick | |
| # Choose what kind of storage to use for this uploader: | |
| storage :file | |
| # Override the directory where uploaded files will be stored. |