require 'csv'
require 'open-uri'
csv_text = open('http://www.vvv.hh.yyy.ggg/~hhhh/uuuu.csv')
csv = CSV.parse(csv_text, :headers=>true)
csv.each do |row|
puts row
end
##Refs
Add to Gemfile: gem 'wicked_pdf'
This file contains 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
filter :roles_contains, as: :select, multiple: true, collection: Roles.all_roles |
This file contains 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 widgetsData = document.querySelector('.widgets-data'); | |
const widgets = JSON.parse(widgetsData.value); |
This file contains 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
<div | |
class="container-fluid admin <%= params[:controller] %> <%= params[:action] %>" | |
data-controller="<%= obj.model_name.plural.downcase %>" | |
data-<%= obj.model_name.plural.downcase %>-action="<%= params[:action] %>" | |
> | |
</div> |
This file contains 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
<label class="label">License Period Start Date</label><br/> | |
<div class="input-group mb-3"> | |
<div> | |
<span class="input-group-text label-from">From</span> | |
<input placeholder="From" type="date" name="q[license_period_start_date_gteq_datetime]" id="license_period_start_date_gteq_datetime" value="<%= params.dig(:q, :license_period_start_date_gteq_datetime) %>"> | |
</div> | |
<div> | |
<span class="input-group-text label-to">To</span> | |
<input placeholder="To" type="date" name="q[license_period_start_date_lteq_datetime]" id="license_period_start_date_lteq_datetime" value="<%= params.dig(:q, :license_period_start_date_lteq_datetime) %>"> | |
</div> |
This file contains 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
date_of_last_entry = Date.parse(Time.at(last_entry).strftime('%Y/%m/%d')) #2011-02-29 | |
Date.today - date_of_last_entry == 0 | |
# get random DateTime in last 3 weeks | |
DateTime.now - (rand * 21) | |
This file contains 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
="http://example.com/" & SUBSTITUTE(R12, "#", "") |
This file contains 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
# app/jobs/example_job.rb | |
class ExampleJob < ActiveJob::Base | |
queue_as :default | |
rescue_from(ActiveRecord::RecordNotFound) do | |
retry_job wait: 1.minute, queue: :default | |
end | |
def perform(param_1, param_2) |
With a large chunk of the team aiming for GopherCon, I wanted to see if you all thought there was value in my going to something completely different, but I'm game to head to GopherCon due to the team-learning aspect, too.
As I took a look at the various things I might learn for the new team, these subjects came to mind:
- Front-end (JS)
- Security