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
;----------------------------------- | |
; Macro Recorder v2.1 By FeiYue | |
; | |
; Description: This script records the mouse | |
; and keyboard actions and then plays back. | |
; | |
; F1 --> Record(Screen) (CoordMode, Mouse, Screen) | |
; F2 --> Record(Window) (CoordMode, Mouse, Window) | |
; F3 --> Stop Record/Play | |
; F4 --> Play LogFile |
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
Windows Registry Editor Version 5.00 | |
;图片 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag] | |
"ThisPCPolicy"="Hide" | |
;视频 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag] | |
"ThisPCPolicy"="Hide" |
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
""" | |
byr最新免费资源rss订阅工具 | |
(配合uTorrent的自动下载rss订阅功能,可刷上传流量) | |
""" | |
import requests | |
import re | |
from lxml import etree | |
import datetime | |
import PyRSS2Gen | |
from fastapi import FastAPI, Response |
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 sklearn import metrics | |
from scipy.optimize import brentq | |
from scipy.interpolate import interp1d | |
def cal_eer(score_true, score_false): | |
""" 计算EER | |
Args: | |
scores_true: 正样例的分数列表 | |
scores_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
// ==UserScript== | |
// @name 网络学堂 批改作业 跳转到下一个人 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author You | |
// @match https://learn.tsinghua.edu.cn/f/wlxt/kczy/xszy/teacher/beforePiYue?* | |
// @icon https://www.google.com/s2/favicons?domain=tsinghua.edu.cn | |
// @grant none | |
// ==/UserScript== |
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
Windows Registry Editor Version 5.00 | |
[-HKEY_CLASSES_ROOT\Directory\shell\runas] | |
[HKEY_CLASSES_ROOT\Directory\shell\runas] | |
@="Open command window here as Administrator" | |
"HasLUAShield"="" | |
[HKEY_CLASSES_ROOT\Directory\shell\runas\command] | |
@="cmd.exe /s /k pushd \"%V\"" |
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
is_first = true | |
save_value = "<span>50<span>" | |
function update_btn() { | |
btn = $("#perPageDiv>") | |
if (btn.length == 0) { | |
is_first = true | |
return | |
} | |
if (is_first) { | |
$("#perPageDiv>")[0].innerHTML = save_value |
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 bob.io.audio | |
import bob.kaldi # https://www.idiap.ch/software/bob/docs/bob/docs/stable/bob/doc/install.html | |
import matplotlib.pyplot as plt | |
def vad(sig, sr, vad_energy_mean_scale=0.5, vad_energy_th=9, vad_frames_context=20, vad_proportion_th=0.4): | |
""" Energy Based Voice Activate Detection algorithm. (based on kaldi) | |
Param: | |
sig: list or np.array | |
the signal, list of samples | |
sr: int |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Mar 22 23:25:50 2021 | |
@author: aqzlp | |
""" | |
#%% | |
import pyaudio | |
import numpy as np |
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
// Reference: https://forums.zotero.org/discussion/82558/rdf-extra-field | |
var fieldName = "extra"; | |
var fieldID = Zotero.ItemFields.getID(fieldName); | |
var s = new Zotero.Search(); | |
s.libraryID = Zotero.Libraries.userLibraryID; | |
s.addCondition(fieldName, 'contains', ': '); | |
s.addCondition('joinMode', 'any'); | |
var ids = await s.search(); |
NewerOlder