Skip to content

Instantly share code, notes, and snippets.

var r = [];
for (var i = 0; i < a.length; i++) {
var httpRequest = new XMLHttpRequest();
r.push(httpRequest);
var url = a[i];
httpRequest.onreadystatechange = () => {
var t = document.createElement("t");
var url_title = document.createElement("p");
<!DOCTYPE html>
<html>
<head>
<title>little card game</title>
</head>
<body>
<style type="text/css">
*
{
margin: 0;
import glob
import os
files = glob.glob("kit-wav2vec2-label-16k/*.wav")
files_mapping = []
for name in files:
_name = name.split(os.sep)
_sources, name = _name[len(_name) - 1].split("__")
import audeer
import audonnx
import librosa
import glob
import os
url = 'https://zenodo.org/record/6221127/files/w2v2-L-robust-12.6bc4a7fd-1.1.0.zip'
model_path = './model.zip'
audeer.download_url(
adb shell wm size 1080x2340

adb shell wm density 440
.css-selector
{
--color-a: #d4fff8;
--color-b: #ffdeff;
--color-c: #ffe6e6;
--color-d: #007a65;
--color-e: #7f0e7f;
--color-f: #ff8983;
background-image: linear-gradient(45deg,var(--color-a),var(--color-b),var(--color-c)),linear-gradient(45deg,var(--color-d),var(--color-e),var(--color-f));
}
// 取得頁面上的初始文字
var targetDom = document.querySelector("main");
var initialText = targetDom.innerText;
// 設定一個定時器,定期檢查頁面上的文字是否有變化
setInterval(function() {
// 取得目前的文字
var currentText = targetDom.innerText;
@LewisGet
LewisGet / gmmhmm.py
Created March 9, 2023 06:14 — forked from kastnerkyle/gmmhmm.py
GMM-HMM (Hidden markov model with Gaussian mixture emissions) implementation for speech recognition and other uses
# (C) Kyle Kastner, June 2014
# License: BSD 3 clause
import scipy.stats as st
import numpy as np
class gmmhmm:
#This class converted with modifications from https://code.google.com/p/hmm-speech-recognition/source/browse/Word.m
def __init__(self, n_states):
self.n_states = n_states
let speech = new SpeechSynthesisUtterance();
speech.lang = "en";
speech.text = "hello kit";
speechSynthesis.speak(speech);
/** list pages */
var href_lists = document.querySelectorAll(".spoilerbody")[2].querySelector("td").querySelectorAll("a");
var url_replace = "/files/all?filter-game-version=2020709689%3A6756";
href_lists.forEach(function(v){
v.href = v.href + url_replace;
v.click();
});