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
# 日本語フォントインストール | |
!apt-get -y install fonts-ipafont-gothic | |
!apt-get -y install fonts-ipafont-mincho | |
# ライブラリインポート | |
from google.colab import files | |
import time | |
import shutil | |
import os | |
from selenium import webdriver |
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
# ライブラリインポート | |
from google.colab import files | |
from bs4 import BeautifulSoup | |
import requests | |
import re | |
# 対象サイトのsitemap.xmlを指定 | |
response = requests.get('https://example.com/sitemap.xml') | |
result = response.content | |
url_lists = '' |
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="app-deliverydate app-deliverydate--time"> | |
<label for="delivery_time" class="delivery_time">配送時間を選択</label> | |
<select id="delivery_time" name="attributes[delivery_time]" value="" style=""> | |
<option>指定なし</option> | |
<option>午前中(9時-12時)</option> | |
<option>12時-17時</option> | |
<option>17時-20時</option> | |
</select> | |
</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
{% comment %} このファイルを直接編集することはできません。 {% endcomment %} | |
<!-- カレンダー表示 --> | |
<div class="app-deliverydate app-deliverydate--date"> | |
<label for="delivery_date_input" class="delivery_date">配送希望日を選択</label> | |
<input type="hidden" name="attributes[delivery_date]" value="" id="delivery_date_input"> | |
<div class="calendar__button"> | |
<button type="button" id="prev" class="calendar__button--prev">前の月</button> | |
<button type="button" id="next" class="calendar__button--next">次の月</button> | |
</div> | |
<div id="calendar" class="app-deliverydate__calendar"></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
<!--Shopify_通知設定_注文の確認テンプレートに挿入 --> | |
{% if attributes["delivery_time"] or attributes["delivery_date"] %} | |
<table class="row"> | |
<tr> | |
<td class="customer-info__item"> | |
<h4>お届け日時</h4> | |
{% if attributes["delivery_date"] %} | |
{{ attributes["delivery_date"] | date: "%Y年 %m月 %d日"}} | |
{% else %} | |
指定なし |
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
- name: Set COMMIT_MESSAGE | |
run: echo ::set-env name=COMMIT_MESSAGE::$(echo "${{ github.event.head_commit.message }}" | tr '\n' ' ') | |
- name: Slack Notification on SUCCESS | |
if: success() | |
uses: tokorom/action-slack-incoming-webhook@master | |
env: | |
INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
with: | |
text: Successfully automated deployment. | |
attachments: | |
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
lhci: | |
name: Lighthouse | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 10.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 10.x | |
- name: npm install, build |
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
name: Firebase Deploy | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build |
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
name: FTP Deploy | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
deploy: |
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
/** | |
* 以下記事を参照 | |
* https://qiita.com/ryo2132/items/7cdd6c86dd418095f74a | |
*/ | |
const functions = require("firebase-functions"); | |
const nodemailer = require("nodemailer"); | |
const gmailEmail = functions.config().gmail.email; | |
const gmailPassword = functions.config().gmail.password; | |
const adminEmail = functions.config().admin.email; |