% docker extension install mutagenio/docker-desktop-extension:latest
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
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs |
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
#!/usr/bin/env ruby | |
message_file = ARGV[0] | |
message = File.read(message_file, :encoding => Encoding::UTF_8) | |
# remove prefix issue number like [#1234] from COMMIT_EDITMSG | |
message = message.sub(/^\[#[0-9A-Za-z_].*\]/, "") | |
# remove comment | |
message = message.gsub(/^#(?! ------------------------ >8 ------------------------).*\n|^\n/, "") |
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
document.getElementById('s').addEventListener('keyup', async (e) => { | |
if (e.key !== 'Enter') return; | |
const s = e.target.value; | |
const corporateInfoUrl = `https://corporation.teraren.com/corporations.json?s=${s}`; | |
try { | |
const corporateResponse = await fetch(corporateInfoUrl); | |
const { items: [corporateData] } = await corporateResponse.json(); |
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
import { disableWheel } from './disable-wheel.js'; | |
window.addEventListener('load', function () { | |
disableWheel('input[type="number"]') | |
}, false); | |
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
gistを更新しても草は生えますか? |
https://github.com/coderabbitai/ai-pr-reviewer を利用したOpenAIによるコードレビュー。
使い方は、このファイルを保存して、OPENAI_API_KEYにAPIキーを設定するだけ。
________(以下,「サイト管理者」といいます。)は,本ウェブサイト上で提供するサービス(以下,「本サービス」といいます。)における,利用者の個人情報の取扱いについて,以下のとおりプライバシーポリシー(以下,「本ポリシー」といいます。)を定めます。
「個人情報」とは,個人情報保護法にいう「個人情報」を指すものとし,生存する個人に関する情報であって,当該情報に含まれる氏名,生年月日,住所,電話番号,連絡先その他の記述等により特定の個人を識別できる情報及び容貌,指紋,声紋にかかるデータ,及び健康保険証の保険者番号などの当該情報単体から特定の個人を識別できる情報(個人識別情報)を指します。
% curl -s "https://bank.teraren.com/banks/0001.json?$(random)" | jq
{
"code": "0001",
"kana": "ミズホ",
"name": "みずほ",
"roma": "mizuho",
"hira": "みずほ",
"normalize": {
"name": "みずほ銀行",
NewerOlder