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 | |
import urllib | |
import re | |
import os | |
import glob | |
import urllib.request | |
from urllib.parse import urljoin | |
from urllib.parse import urlparse |
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
主要功能 | |
视频翻译 | |
上传视频文件,AI自动生成中英双语字幕 | |
视频转写 | |
上传视频文件,一键快速生成视频字幕 | |
字幕翻译 | |
上传生肉字幕,智能制作熟肉文件 |
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
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
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
public class Solution { | |
/* | |
The solution use the find Kth element in the sorted two arrays. We compare the ith element in A and jth element in B, where i+j = k-1. | |
A[i]> A[j], both right part of A and left part of B should be discarded. | |
A[i]< A[j], both left part of A and right part of B should be discarded. | |
*/ | |
public double findMedianSortedArrays(int A[], int B[]) { | |
int m = A.length; | |
int n = B.length; |