- Create a private key:
openssl genrsa 2048 > private-key.pem- Create a Certificate Signing Request (CSR):
| Rspec.configure do |config| | |
| # ... all our other config ... | |
| Capybara.register_driver :selenium_chrome do |app| | |
| options = Selenium::WebDriver::Chrome::Options.new | |
| options.add_extension(Rails.root.join('spec', 'chrome_extensions', 'react-devtools.crx')) | |
| options.add_extension(Rails.root.join('spec', 'chrome_extensions', 'redux-devtools.crx')) | |
| chrome_options = { | |
| browser: :chrome, |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>Normal Plot</title> | |
| <meta name="description" content=""> | |
| <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
| <style type="text/css"> |
If you need to manipulate existing data when your code is deployed, there are two main ways to do it:
Regardless of the method you use, make sure to test your migrations before submitting them.
| <ul class="some-list" ng-controller="someListController"> | |
| <li ng-repeat="item in items">{{item.name}}</li> | |
| </ul> | |
| <ul class="pagination-links"> | |
| <li ng-repeat="page in totalPages"> | |
| <a ng-click="getItems(page)">{{page}}</a> | |
| </li> | |
| </ul> |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| /** | |
| * Your Stylesheet | |
| * | |
| * This stylesheet is loaded when Atom starts up and is reloaded automatically | |
| * when it is changed. | |
| * | |
| * If you are unfamiliar with LESS, you can read more about it here: | |
| * http://www.lesscss.org | |
| */ |
| namespace :spree_tools do | |
| desc "Generate random coupon codes in bulk." | |
| task :generate_coupons => :environment do | |
| puts "How many codes would you like to generate?" | |
| number_of_codes = STDIN.gets.strip.to_i | |
| puts "\nHow much would you like this discount to be for?" | |
| amount = STDIN.gets.strip.to_f | |
| puts "\nWhat product should this promotion apply for? (use product name)" |
| require 'spec_helper' | |
| describe Order do | |
| describe '.responds_to' do | |
| # attributes | |
| it { should respond_to(:recipient_name) } | |
| it { should respond_to(:shipping_to_address) } | |
| it { should respond_to(:shipping_to_city) } | |
| it { should respond_to(:shipping_to_state) } | |
| it { should respond_to(:shipping_to_zip) } |