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
/** 替换特色图片附件为七牛 **/ | |
/** ?imageView2/1/q/85/format/WEBP 暂时取消对图像进行WEBP处理**/ | |
function QiNiuCDN(){ | |
function Rewrite_URI($html){ | |
/* 前面是需要用到七牛的域名,后面是需要加速的文件类型,使用分隔符 | 隔开即可 */ | |
$pattern ='/http:\/\/heiybb\.com\/wp-content([^"\']*?)\.(jpg|png|jpeg)/i'; | |
/* 七牛CDN空间地址 */ | |
if($is_chrome){ | |
$replacement = 'https://dn-img-blog.qbox.me$1.$2?imageView2/1/q/85/format/WEBP'; | |
} |
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 java.util.Scanner; | |
public class Student { | |
private String name; | |
private float mark; | |
public static void main(String[] args) { | |
Scanner stInput = new Scanner(System.in); | |
System.out.print("Enter number of students:\n"); | |
int num = stInput.nextInt(); |
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 Course { | |
private String id; | |
private String name; | |
private Course(String ID, String NAME) { | |
id = ID; | |
name = NAME; | |
} | |
public static void main(String[] args) { |
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/sh | |
####################################################### | |
# | |
# Edits the proxmox Subscription file to make it | |
# think that it has a Subscription. | |
# | |
# Will disable the annoying login message about | |
# missing subscription. | |
# |
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
cmake_minimum_required(VERSION 2.6) | |
project(yolov5) | |
set(OpenCV_DIR "D:/IDE/opencv-cuda-build-install") | |
set(TRT_DIR "D:/IDE/CUDA11.2/Dev") | |
add_definitions(-std=c++11) | |
add_definitions(-DAPI_EXPORTS) | |
option(CUDA_USE_STATIC_CUDA_RUNTIME OFF) | |
set(CMAKE_CXX_STANDARD 11) |
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 tl2_utils import dat_format | |
def remove_duplicates_ordered(input_list): | |
seen = set() | |
output_list = [] | |
for item in input_list: | |
if item not in seen: | |
seen.add(item) | |
output_list.append(item) |