- https://qiita.com/miekoma/items/e559c065ccbeb2ba1572
- https://knative.dev/docs/getting-started/first-service/#knative-service-hello-world
以下の手順は全てamd64なUbuntu Serverで実行することを前提にしている。 ほぼ参考サイトままだが、Knative 1.3.0ベースに書き換えている。
以下の手順は全てamd64なUbuntu Serverで実行することを前提にしている。 ほぼ参考サイトままだが、Knative 1.3.0ベースに書き換えている。
| ruby '2.7.1' | |
| gem 'rails', github: 'rails/rails' | |
| gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
| # Action Text | |
| gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
| gem 'okra', github: 'basecamp/okra' | |
| # Drivers |
| let vimplug_exists=expand('~/.config/nvim/autoload/plug.vim') | |
| if !filereadable(vimplug_exists) | |
| if !executable("curl") | |
| echoerr "You have to install curl or first install vim-plug yourself!" | |
| execute "q!" | |
| endif | |
| echo "Installing Vim-Plug..." | |
| echo "" | |
| silent !\curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |
| # frozen_string_literal: true | |
| require "mysql2" | |
| def client | |
| Mysql2::Client.new( | |
| host: "localhost", | |
| username: "root", | |
| database: "test", | |
| ) |
| # frozen_string_literal: true | |
| require 'open-uri' | |
| require 'csv' | |
| require 'nkf' | |
| require 'nokogiri' | |
| class CrawlerBase | |
| # TODO: they should be optional. | |
| MAX_TRY_COUNT = 3 |