Skip to content

Instantly share code, notes, and snippets.

View dorbodwolf's full-sized avatar
🏠
Working from home

Deyu Tian dorbodwolf

🏠
Working from home
View GitHub Profile
"use client";
import { useState } from "react";
import styles from "./PdfUploader.module.css"; // 假设你已添加相应的样式
const PdfUploader = () => {
const [file, setFile] = useState<File | null>(null);
const [url, setUrl] = useState<string>(""); // 存储 PDF 链接
const [status, setStatus] = useState<string | null>(null);
const [taskId, setTaskId] = useState<string | null>(null);
@dorbodwolf
dorbodwolf / Unicode.md
Created April 6, 2021 03:37 — forked from gornostal/Unicode.md
Python 2.7. Unicode Errors Simply Explained

Python 2.7. Unicode Errors Simply Explained

I know I'm late with this article for about 5 years or so, but people are still using Python 2.x, so this subject is relevant I think.

Some facts first:

  • Unicode is an international encoding standard for use with different languages and scripts
  • In python-2.x, there are two types that deal with text.
    1. str is an 8-bit string.
  1. unicode is for strings of unicode code points.
@dorbodwolf
dorbodwolf / yolov4.py
Created January 21, 2021 10:02 — forked from YashasSamaga/yolov4.py
YOLOv4 inference using OpenCV DNN
import cv2
import time
CONFIDENCE_THRESHOLD = 0.2
NMS_THRESHOLD = 0.4
COLORS = [(0, 255, 255), (255, 255, 0), (0, 255, 0), (255, 0, 0)]
class_names = []
with open("classes.txt", "r") as f:
class_names = [cname.strip() for cname in f.readlines()]
@dorbodwolf
dorbodwolf / 1586415781428.jpg
Last active January 7, 2021 07:22
hello,Gist
1586415781428.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dorbodwolf
dorbodwolf / amazon_forest_notebook.ipynb
Created October 31, 2017 13:02 — forked from godardt/amazon_forest_notebook.ipynb
Planet: Understanding the Amazon deforestation from Space challenge
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.