This file contains hidden or 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
| # Github ActionsでMATLABのスクリプトを実行するサンプル。 | |
| # 1時間ごとにスクリプトを実行、結果に差分があるときだけcommitする | |
| # Publicなリポジトリなら実行できるはず | |
| name: Run MATLAB Script on GitHub-Hosted Runner | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 * * * *' | |
| jobs: |
This file contains hidden or 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
| Google Assistant Library for Python | |
| google.assistant.library package. | |
| class google.assistant.library.Assistant(credentials)[source] | |
| Client for the Google Assistant Library. | |
| Provides basic control functionality and lifecycle handling for the Google Assistant. | |
| Google Assistantの基本的な制御機能とライフサイクル処理を提供します。 |
This file contains hidden or 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
| import requests | |
| from bs4 import BeautifulSoup | |
| def main(): | |
| url = 'https://ex-portal3.reed.jp/list/SODECS2017_ja.html' | |
| res = requests.get(url) | |
| soup = BeautifulSoup(res.content, 'html.parser') | |
| companies = soup.find_all('tr', class_=['', 'tr_bg']) | |
| for company in companies: | |
| exhibition = company.find('td', class_='td_exhibitions').text |
This file contains hidden or 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
| a = '万中久乾亀亨享仁保元勝化吉同和喜嘉国大天字安宝寛寿平康延建弘徳応感慶成承授政文斉昌明昭景暦正武永治泰白祚神祥禄禎福老至興衡観護貞銅長雉雲霊養' | |
| a.split(//).permutation(2){|b| print "#{b*''},"} |