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
#たぶんもともと入ってない | |
sudo apt install nkf jq |
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
#!/bin/bash | |
# how to use: | |
# chmod +x ./calc_wer.sh | |
# ./calc_wer.sh A.txt B.txt | |
# needed: pip, mecab, asr-evaluation | |
# install example: | |
# sudo apt install mecab libmecab-dev mecab-ipadic-utf8 |
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
timer = setInterval(function() { | |
frame = document.querySelector('#chatframe') | |
if(frame !== null){ | |
contents = document.querySelector('#chatframe').contentDocument.querySelector('div#contents.style-scope.yt-live-chat-app') | |
chats = document.querySelector('#chatframe').contentDocument.querySelector('div#items.style-scope.yt-live-chat-item-list-renderer') | |
chats_scroller = document.querySelector('#chatframe').contentDocument.querySelector('#item-scroller') | |
if(contents !== null && chats !== null){ | |
console.log("start") | |
clearInterval(timer) | |
modelatorChats = document.createElement('div') |
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 macros, sugar, sequtils | |
import rationals | |
proc `//`[T: SomeInteger](num, den: T): Rational[T] = initRational(num, den) | |
proc `//`[T: not SomeInteger](num, den: T): auto = num / den | |
proc genReplacer(fromNode, toNode: NimNode): auto = | |
proc replacer(node: NimNode):NimNode = | |
if node.len == 0: | |
if node.kind == nnkIdent and node == fromNode: |
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
function run(nodes){ | |
nodes.forEach(function(node){ | |
if(typeof node.querySelectorAll !== "function") return; | |
// Remove artwork | |
node.querySelectorAll("span.sc-artwork").forEach(function(e){e.remove()}) | |
// Remove header | |
node.querySelectorAll("div.profileHeaderBackground__visual").forEach(function(e){e.remove()}) | |
}) | |
} |
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
function run(nodes){ | |
nodes.forEach(function(node){ | |
if(typeof node.querySelectorAll !== "function") return; | |
document.querySelectorAll("*[class*=star]").forEach(function(e){e.remove()}) | |
document.querySelectorAll("*[class*=rating]").forEach(function(e){e.remove()}) | |
}) | |
} | |
run([document]) |
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
// Too bad extension. Bad I think it is the best way. | |
extension String { | |
subscript(index: Int) -> Character { | |
return self[self.index(self.startIndex, offsetBy: index)] | |
} | |
subscript(bounds: CountableRange<Int>) -> Substring { | |
return self[index(at: bounds.lowerBound)..<index(at: bounds.upperBound)] | |
} |
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
from scapy.all import * | |
from sys import exit | |
import sys | |
from ctypes import * | |
import win32gui, win32com.client | |
from enum import Enum | |
user32 = windll.user32 | |
kernel32 = windll.kernel32 | |
# definition |
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
@echo off | |
set errmes=ARP エントリが見つかりませんでした。 | |
set iphone=192.168.11.3 | |
set quest=192.168.11.12 | |
arp -d %iphone% | |
ping %iphone% -n 1 -w 10000 | |
arp -a %iphone% > tmpfile |
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
"config": { | |
"detectGlobalManagerConfig": false, | |
"detectHostRulesFromEnv": false, | |
"postUpgradeTasks": { | |
"commands": [], | |
"fileFilters": [], | |
"executionMode": "update" | |
}, | |
"onboardingBranch": "renovate/configure", | |
"onboardingCommitMessage": null, |
OlderNewer