adb shell wm size 1080x2340
adb shell wm density 440
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
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"); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>little card game</title> | |
</head> | |
<body> | |
<style type="text/css"> | |
* | |
{ | |
margin: 0; |
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 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("__") |
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 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( |
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
.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)); | |
} |
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
// 取得頁面上的初始文字 | |
var targetDom = document.querySelector("main"); | |
var initialText = targetDom.innerText; | |
// 設定一個定時器,定期檢查頁面上的文字是否有變化 | |
setInterval(function() { | |
// 取得目前的文字 | |
var currentText = targetDom.innerText; | |
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
# (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 |
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
let speech = new SpeechSynthesisUtterance(); | |
speech.lang = "en"; | |
speech.text = "hello kit"; | |
speechSynthesis.speak(speech); |
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
/** 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(); | |
}); |
NewerOlder