Skip to content

Instantly share code, notes, and snippets.

View heiybb's full-sized avatar
🐴
Studying At Home

Heiybb heiybb

🐴
Studying At Home
View GitHub Profile
@heiybb
heiybb / translation_dup_clean.py
Created September 4, 2023 02:47
火炬之光2 翻译文件清理
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)
@heiybb
heiybb / CMakeLists.txt
Created September 22, 2021 11:34
tensorrtx yolov5
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)
@heiybb
heiybb / rem_proxmox_popup.sh
Created March 6, 2020 10:33 — forked from tavinus/rem_proxmox_popup.sh
Remove PROXMOX 5.x / 6.x subscription message popup
#!/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.
#
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) {
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();
/** 替换特色图片附件为七牛 **/
/** ?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';
}