水平垂直居中是前端的痛,也是前端__永恒__话题,这次记录两个用display:flex
实现的方法:
第一种:
Sidekiq jobs can be enqueued or scheduled. Enqueued means that they are gonna be picked up as soon as possible, scheduled jobs will be enqueued at some specific time.
When using ActiveJobs, Rails will return a job_id
after sending the job to ActiveJobs
job = UserMailer.send_invite(params).deliver_later
class Category < ApplicationRecord | |
has_many :types | |
end | |
class Type < ApplicationRecord | |
belongs_to :category | |
end | |
# Admin DSL. you need to pass the the selected type_id by passing the form object value. | |
f.input :category |
commands: | |
01_install_yarn: | |
command: "sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo && curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash - && sudo yum install yarn -y" | |
02_download_nodejs: | |
command: "curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -" | |
03_install_nodejs: | |
command: "yum -y install nodejs" | |
04_mkdir_webapp_dir: | |
command: "mkdir /home/webapp" |
/** | |
// Example implementation as follows: | |
public class AWSS3_GetService extends AWS { | |
public override void init() { | |
resource = '/[your bucket]/[your folder 1]/[your folder 2]/[file name].[extension]'; | |
region = 'eu-west-2'; | |
service = 's3'; | |
endpoint = new Url('https://' + service + '.' + region + '.amazonaws.com/'); | |
accessKey = 'SET HERE'; | |
method = HttpMethod.XGET; |