Send multiple emails to different recipients.
# app/mailers/notify_mailer.rb
class NotifyMailer < ApplicationMailer| #!/bin/sh | |
| # Variables | |
| FOLDER_NAME="CrossOverLicence" | |
| PLIST_NAME="com.codeweavers.CrossOver.license.plist" | |
| BOTTLES_PATH="$HOME/Library/Application Support/CrossOver/Bottles" | |
| SCRIPT_URL="https://gist.githubusercontent.com/repsejnworb/84d3e0852cf90ef40edf7e9c060f193b/raw/CrossOverLicence.sh?token=$(date +%s)" | |
| TOTAL_STEPS=3 | |
| STEP=0 |
| def reverse_array(arr) | |
| return arr if arr.empty? | |
| arr = arr.dup | |
| start_index = 0 | |
| end_index = arr.length - 1 | |
| while start_index < end_index | |
| arr[start_index], arr[end_index] = arr[end_index], arr[start_index] |
| def query(params) | |
| # this magic method prepares sql and gets correct data from DB | |
| # NO CHANGES HERE | |
| puts "Params = #{params}" | |
| [ | |
| {name: "John", surname: "Doe", age: 33}, | |
| {name: "John", surname: "Doe", age: 34}, | |
| {name: "John", surname: "Doe", age: 35} | |
| ] | |
| end |
| class Profile extends React.Component { | |
| render(props) { | |
| return <div>{props}</div> | |
| } | |
| } | |
| // Dumb component | |
| function Profile(props) { | |
| return <div>{props}</div> |
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
| import React from 'react' | |
| // Example 1: translation | |
| const TranslationContext = { | |
| // most likely, from Provider or any other top-level component | |
| locale: 'en', | |
| strings: { | |
| en: { | |
| 'user.my_account': 'My account' |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"