Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl -w
# src/htdocs 下の PHP ファイルのパスを取得して表示します。
# ファイル名が php-files.txt に含まれているもののみ取得します。
# @files は「foo.php」のような PHP ファイル名のリスト,行区切り
open FILE, '<', 'php-files.txt';
chomp(@files = <FILE>);
@file_dict{@files} = (); # ハッシュスライスを使って、%file_dict のキーとして @files の中身を入れる
import React, { useEffect, useState, useRef } from "react";
import {
SpeechRecogintionResult,
createSpeechRecognition,
createMediaRecorder,
SpeechRecord
} from "./utils";
let currentSpeechRecognition: any | null = null;
let currentMediaRecorder: any | null = null;